mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
Always detect ^C
Sometimes Ctrl-keys are sent to the backend as text instead of as a command key, so we must look for ^C in both cases. This fixes a the ^W^C bug (Issue 48).
This commit is contained in:
@@ -1662,6 +1662,12 @@ static NSString *MMSymlinkWarningString =
|
||||
}
|
||||
#endif
|
||||
|
||||
if (len == 1 && ((str[0] == Ctrl_C && ctrl_c_interrupts)
|
||||
|| (str[0] == intr_char && intr_char != Ctrl_C))) {
|
||||
trash_input_buf();
|
||||
got_int = TRUE;
|
||||
}
|
||||
|
||||
for (i = 0; i < len; ++i) {
|
||||
add_to_input_buf(str+i, 1);
|
||||
if (CSI == str[i]) {
|
||||
|
||||
Reference in New Issue
Block a user