search: search_update_selection() no longer expects end coordinate to be exclusive

This commit is contained in:
Daniel Eklöf 2022-04-18 00:01:24 +02:00
parent 529da8e238
commit 68db8ff1f5
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -623,9 +623,6 @@ search_match_to_end_of_word(struct terminal *term, bool spaces_only)
if (move_cursor)
term->search.cursor = term->search.len;
/* search_update_selection() expected end coordinate to be *exclusive* */
newline(new_end);
struct range match = {.start = term->search.match, .end = new_end};
search_update_selection(term, &match);