aboutsummaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-10-06 15:43:21 +0200
committerJoe <bousset.rudy@gmail.com>2022-10-06 15:43:21 +0200
commit06a829f38dca87e54d16c05512680e1572105f67 (patch)
tree94ec94dab109fe9cd791f16b7659fa48e2585d2a /st.c
parentup (diff)
downloadst-06a829f38dca87e54d16c05512680e1572105f67.tar.gz
st-06a829f38dca87e54d16c05512680e1572105f67.tar.bz2
st-06a829f38dca87e54d16c05512680e1572105f67.tar.xz
st-06a829f38dca87e54d16c05512680e1572105f67.tar.zst
st-06a829f38dca87e54d16c05512680e1572105f67.zip
Diffstat (limited to 'st.c')
-rw-r--r--st.c5
1 files changed, 4 insertions, 1 deletions
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 :