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:
Bjorn Winckler
2008-01-31 19:45:22 +01:00
parent 3b98d9f0dc
commit b8a482ebf8
+6
View File
@@ -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]) {