From e003736e1195c48d4371e5bdc02883addd3850f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 3 Dec 2019 19:24:33 +0100 Subject: [PATCH] search: rename search_update() -> search_find_next() --- search.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/search.c b/search.c index 1ebeb646..2d600ac3 100644 --- a/search.c +++ b/search.c @@ -84,7 +84,7 @@ search_cancel(struct terminal *term) } static void -search_update(struct terminal *term) +search_find_next(struct terminal *term) { bool backward = term->search.direction == SEARCH_BACKWARD; term->search.direction = SEARCH_BACKWARD; @@ -327,7 +327,7 @@ search_match_to_end_of_word(struct terminal *term) /* TODO: split up search_update() into one part that searches for * a match, and a second part that updates the view and sets the * selction. Call the latter part here */ - search_update(term); + search_find_next(term); } static size_t @@ -584,7 +584,7 @@ search_input(struct terminal *term, uint32_t key, xkb_keysym_t sym, xkb_mod_mask } LOG_DBG("search: buffer: %S", term->search.buf); - search_update(term); + search_find_next(term); render_refresh(term); render_search_box(term); }