aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-07-22 19:34:25 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-07-22 19:34:25 +0000
commit14737d1d829615926ed79468b331e7f7aa57e1b1 (patch)
tree6adca3f6d5675e2c6a59596a0fc06e7346811fa4 /selection.c
parentdoc: ctlseq: improve description of OSC 52 response (diff)
parentsearch: redraw search box after selection has been cancelled (diff)
Merge branch 'search-crash-when-selection-is-cancelled'
Closes #644
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/selection.c b/selection.c
index 537614f6..95879445 100644
--- a/selection.c
+++ b/selection.c
@@ -21,6 +21,7 @@
#include "grid.h"
#include "misc.h"
#include "render.h"
+#include "search.h"
#include "uri.h"
#include "util.h"
#include "vt.h"
@@ -1058,6 +1059,8 @@ selection_cancel(struct terminal *term)
term->selection.pivot.end = (struct coord){-1, -1};
term->selection.direction = SELECTION_UNDIR;
term->selection.ongoing = false;
+
+ search_selection_cancelled(term);
}
bool