diff options
Diffstat (limited to 'editors/vi.c')
-rw-r--r-- | editors/vi.c | 8 |
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) file_modified = 0; last_file_modified = -1; } - if ((cmd[0] == 'x' || cmd[1] == 'q' || cmd[1] == 'n' || - cmd[0] == 'X' || cmd[1] == 'Q' || cmd[1] == 'N') - && l == ch) { + if ((cmd[0] == 'x' || cmd[1] == 'q' || cmd[1] == 'n' + || cmd[0] == 'X' || cmd[1] == 'Q' || cmd[1] == 'N' + ) + && l == ch + ) { editing = 0; } } |