diff options
author | altermo <> | 2024-01-16 17:25:17 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-01-16 17:25:17 +0100 |
commit | 7d711fe2092d0438d2df5054df735ec34926e2bc (patch) | |
tree | 401aecf9711ac2303fa55d3eeffeb64e680a7628 /src/edit.c | |
parent | ac4cffc6d9d307778d8a2945adab70244470bbb8 (diff) |
patch 9.1.0035: i_CTRL-] triggers InsertCharPrev9.1.0035
Problem: i_CTRL-] triggers InsertCharPre
Solution: Return if CTRL-] is received. InsertCharPre
is supposed to be only used for chars to be inserted
but i_CTRL-] triggers expansion and is not inserted
into the buffer (altermo)
closes: #13853
closes: #13864
Signed-off-by: altermo
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c index cb6ae7ee9b..672028bbba 100644 --- a/src/edit.c +++ b/src/edit.c @@ -5371,6 +5371,9 @@ do_insert_char_pre(int c) if (!has_insertcharpre()) return NULL; + if (c == Ctrl_RSB) + return NULL; + if (has_mbyte) buf[(*mb_char2bytes)(c, buf)] = NUL; else |