aboutsummaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
author0WD0 <wd.1105848296@gmail.com>2026-06-18 13:50:59 +0000
committerDaniel Eklöf <daniel@ekloef.se>2026-07-21 09:11:28 +0000
commit027ef55842c36b1b6182ebe334a92e402e39e54e (patch)
tree8d0211a1b34da19791742397f5b248602c8fd6dd /search.c
parentxmalloc/xsnprintf: simplify some code with new FATAL_ERROR_ON() macro (diff)
ime: refresh search matches after IME commit
The IME commit handler appended text to the search buffer and refreshed the search box, but never called search_find_next(). CJK input into scrollback search therefore showed no match until another key press re-triggered the regular search input path. Call search_find_next() in the commit branch, and apply the same fix to unicode-mode.c. To allow this, search_find_next() is no longer static.
Diffstat (limited to 'search.c')
-rw-r--r--search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/search.c b/search.c
index ef0a15bb..92815591 100644
--- a/search.c
+++ b/search.c
@@ -424,7 +424,7 @@ find_next(struct terminal *term, enum search_direction direction,
return false;
}
-static void
+void
search_find_next(struct terminal *term, enum search_direction direction)
{
struct grid *grid = term->grid;