apply patch st-autocomplete-20240703-6508693.diff
This commit is contained in:
9
x.c
9
x.c
@@ -1867,11 +1867,20 @@ kpress(XEvent *ev)
|
||||
/* 1. shortcuts */
|
||||
for (bp = shortcuts; bp < shortcuts + LEN(shortcuts); bp++) {
|
||||
if (ksym == bp->keysym && match(bp->mod, e->state)) {
|
||||
if (bp -> func != autocomplete)
|
||||
autocomplete ((const Arg []) { ACMPL_DEACTIVATE });
|
||||
bp->func(&(bp->arg));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!(
|
||||
len == 0 &&
|
||||
e -> state & ~ignoremod // ACMPL_ISSUE: I'm not sure that this is the right way
|
||||
| ACMPL_MOD == ACMPL_MOD
|
||||
))
|
||||
autocomplete ((const Arg []) { ACMPL_DEACTIVATE });
|
||||
|
||||
/* 2. custom keys from config.h */
|
||||
if ((customkey = kmap(ksym, e->state))) {
|
||||
ttywrite(customkey, strlen(customkey), 1);
|
||||
|
||||
Reference in New Issue
Block a user