From 06a829f38dca87e54d16c05512680e1572105f67 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 6 Oct 2022 15:43:21 +0200 Subject: up --- st.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/st.c b/st.c index a0498cd..8372279 100644 --- a/st.c +++ b/st.c @@ -2896,14 +2896,17 @@ int trt_kbdselect(KeySym ksym, char *buf, int len) { set_notifmode(15, ksym); selectsearch_mode ^= 2; break; + case XK_i : case XK_Escape : - if ( !in_use ) break; selclear(); + if ( !in_use ) break; + case XK_Return : case XK_y : set_notifmode(4, ksym); term.c.x = cu.x, term.c.y = cu.y; select_or_drawcursor(selectsearch_mode = 0, type); in_use = quant = 0; + selclear(); return MODE_KBDSELECT; case XK_n : case XK_N : -- cgit v1.2.3