diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-07-22 19:34:25 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-07-22 19:34:25 +0000 |
| commit | 14737d1d829615926ed79468b331e7f7aa57e1b1 (patch) | |
| tree | 6adca3f6d5675e2c6a59596a0fc06e7346811fa4 /search.c | |
| parent | doc: ctlseq: improve description of OSC 52 response (diff) | |
| parent | search: redraw search box after selection has been cancelled (diff) | |
Merge branch 'search-crash-when-selection-is-cancelled'
Closes #644
Diffstat (limited to 'search.c')
| -rw-r--r-- | search.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -155,6 +155,14 @@ search_cancel(struct terminal *term) selection_cancel(term); } +void +search_selection_cancelled(struct terminal *term) +{ + term->search.match = (struct coord){-1, -1}; + term->search.match_len = 0; + render_refresh_search(term); +} + static void search_update_selection(struct terminal *term, int start_row, int start_col, |
