commit de0644a120321ed77a853cde5b99ba5c0c03259c
parent 2d4e821470c10a334268382ec842098730acfd75
Author: Robert Russell <robertrussell.72001@gmail.com>
Date: Wed, 28 Dec 2022 14:57:40 -0800
Don't send CSI for merely shifted unicode
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/x.c b/x.c
@@ -1721,7 +1721,9 @@ kaction(XKeyEvent *e, int release)
return;
/* 2. Modified UTF8-encoded unicode */
- if ((state&KMOD) > 0 && utf8dec(buf, &c, len) == len && c != UTF_INVALID)
+ if ((state&KEXCL(SHFT)) > 0
+ && utf8dec(buf, &c, len) == len
+ && c != UTF_INVALID)
len = csienc(buf, sizeof buf, state, c, SHFT, 'u');
/* 3. Default to directly sending composed string from the input method