aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/vi.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 58c6f5a05..c4bca2a9c 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -1158,9 +1158,11 @@ static void colon(char *buf)
1158 file_modified = 0; 1158 file_modified = 0;
1159 last_file_modified = -1; 1159 last_file_modified = -1;
1160 } 1160 }
1161 if ((cmd[0] == 'x' || cmd[1] == 'q' || cmd[1] == 'n' || 1161 if ((cmd[0] == 'x' || cmd[1] == 'q' || cmd[1] == 'n'
1162 cmd[0] == 'X' || cmd[1] == 'Q' || cmd[1] == 'N') 1162 || cmd[0] == 'X' || cmd[1] == 'Q' || cmd[1] == 'N'
1163 && l == ch) { 1163 )
1164 && l == ch
1165 ) {
1164 editing = 0; 1166 editing = 0;
1165 } 1167 }
1166 } 1168 }