summaryrefslogtreecommitdiff
path: root/math/sc-im/files/patch-cmds__command.c
blob: dfd44b752cca7920daf8752aa8f5bf1defc2c7d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- cmds_command.c.orig	2019-02-22 18:41:46 UTC
+++ cmds_command.c
@@ -853,7 +853,7 @@ void do_commandmode(struct block * sb) {
             exec_cmd(line);
 
         } else if ( inputline[0] == L'w' ) {
-            if (savefile() == 0 && ! wcscmp(inputline, L"wq")) shall_quit = 1;
+            if (savefile() == 0 && ! wcsncmp(inputline, L"wq", 2)) shall_quit = 1;
 
         } else if ( ! wcsncmp(inputline, L"file ", 5) ) {