diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-07-22 15:53:29 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-07-22 15:57:43 +0000 |
| commit | 251545203baa65364e491ddbe71ab3f8080bfe25 (patch) | |
| tree | 04ae28511ffa429fdade04672815c253e2a2c4c6 /search.h | |
| parent | doc: ctlseq: improve description of OSC 52 response (diff) | |
search: reset match state when selection is cancelled
While we’re in scrollback search mode, the selection may be
cancelled (for example, if the application is scrolling out the
selected text). Trying to e.g. extend the search selection after this
has happened triggered a crash.
This fixes it by simply resetting the search match state when the
selection is cancelled.
Closes #644
Diffstat (limited to 'search.h')
| -rw-r--r-- | search.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -11,3 +11,5 @@ void search_input( const xkb_keysym_t *raw_syms, size_t raw_count, uint32_t serial); void search_add_chars(struct terminal *term, const char *text, size_t len); + +void search_selection_cancelled(struct terminal *term); |
