From 68db8ff1f58bf167fb2eea6747bea3ee7e8a2459 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 18 Apr 2022 00:01:24 +0200 Subject: [PATCH] search: search_update_selection() no longer expects end coordinate to be exclusive --- search.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/search.c b/search.c index e7961dc9..84957b72 100644 --- a/search.c +++ b/search.c @@ -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);