diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-03-28 19:15:39 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-05-17 16:14:10 +0000 |
| commit | 11f7a6616b8d4636c8df513cd5626f7ca66017b5 (patch) | |
| tree | b104b4e575609350e58c008de7479989b0fe68bd | |
| parent | search: match_to_end_of_word(): skip newlines when copying from extraction buffer (diff) | |
search: match_to_end_of_word(): we always extend the selection with at least one character
| -rw-r--r-- | search.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -456,13 +456,11 @@ search_match_to_end_of_word(struct terminal *term, bool spaces_only) xassert(term->grid->rows[new_end.row] != NULL); + /* Find next word boundary */ new_end.row -= term->grid->view; selection_find_word_boundary_right(term, &new_end, spaces_only); new_end.row += term->grid->view; - if (new_end.row == old_end.row && new_end.col == old_end.col) - return; - struct coord pos = old_end; const struct row *row = term->grid->rows[pos.row]; |
