aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-12-03 19:26:32 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-12-03 19:26:32 +0000
commita17ce10c03f9c69f11ca6ebc03bca1ac2adc9d48 (patch)
treef26c102aa2db97978e756ba6aef5ef734b9be6b2
parentsearch: match_to_end_of_word: bug: reset end-col when bumping end-row (diff)
search: match_to_end_of_word: reset end_col when done with a row
-rw-r--r--search.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/search.c b/search.c
index cfd339a6..31d26c36 100644
--- a/search.c
+++ b/search.c
@@ -314,6 +314,8 @@ search_match_to_end_of_word(struct terminal *term, bool spaces_only)
if (done)
break;
+
+ end_col = 0;
}
if (tll_length(new_chars) == 0)