diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-04-09 13:09:02 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-04-09 13:09:02 +0000 |
| commit | 5b1f1602bccfb7c37e50a8509f44b24e9aa3b5d1 (patch) | |
| tree | d7d801fa0dee8d886b1d8302ea3b0436b86bf22e /search.c | |
| parent | config: use fallback when XDG_CONFIG_{HOME,DIRS} is set, but empty (diff) | |
refactor: add a ‘range’ struct, grouping a start and end coord together
Diffstat (limited to 'search.c')
| -rw-r--r-- | search.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -450,11 +450,11 @@ search_match_to_end_of_word(struct terminal *term, bool spaces_only) if (term->search.match_len == 0) return; - xassert(term->selection.end.row != -1); + xassert(term->selection.coords.end.row != -1); const bool move_cursor = term->search.cursor == term->search.len; - const struct coord old_end = term->selection.end; + const struct coord old_end = term->selection.coords.end; struct coord new_end = old_end; struct row *row = NULL; |
