From a17ce10c03f9c69f11ca6ebc03bca1ac2adc9d48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 3 Dec 2019 20:26:32 +0100 Subject: [PATCH] search: match_to_end_of_word: reset end_col when done with a row --- search.c | 2 ++ 1 file changed, 2 insertions(+) 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)