diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-29 19:16:25 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-29 19:16:25 +0000 |
| commit | db291573b78aaef20e87f42b217bdddae8f0f732 (patch) | |
| tree | 9a4afb211ad73d7b07ea0866ccd012bfdae35768 | |
| parent | search: for now, reset search match state whenever the buffer changes (diff) | |
Revert "search: for now, reset search match state whenever the buffer changes"
This reverts commit 9c6ece747ed328b0e922597ec52646c00bb68c8c.
| -rw-r--r-- | search.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -293,9 +293,6 @@ search_input(struct terminal *term, uint32_t key, xkb_keysym_t sym, xkb_mod_mask (term->search.len - term->search.cursor) * sizeof(wchar_t)); term->search.cursor--; term->search.buf[--term->search.len] = L'\0'; - - term->search.match = (struct coord){-1, -1}; - term->search.match_len = 0; } } @@ -315,9 +312,6 @@ search_input(struct terminal *term, uint32_t key, xkb_keysym_t sym, xkb_mod_mask &term->search.buf[term->search.cursor + 1], (term->search.len - term->search.cursor - 1) * sizeof(wchar_t)); term->search.buf[--term->search.len] = L'\0'; - - term->search.match = (struct coord){-1, -1}; - term->search.match_len = 0; } } @@ -369,9 +363,6 @@ search_input(struct terminal *term, uint32_t key, xkb_keysym_t sym, xkb_mod_mask term->search.len += wchars; term->search.cursor += wchars; term->search.buf[term->search.len] = L'\0'; - - term->search.match = (struct coord){-1, -1}; - term->search.match_len = 0; } LOG_DBG("search: buffer: %S", term->search.buf); |
