1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-08 06:48:28 +00:00
freebsd-ports/math/sc-im/files/patch-cmds__command.c
Baptiste Daroussin f83106b6c1 Update to 0.7.0-81
Upstream changes fixes a conflict with textproc/scim
Some cleanups

PR:		237839
Approved by:	Samy Mahmoudi <samy.mahmoudi@gmail.com>
2019-05-23 17:05:47 +00:00

12 lines
432 B
C

--- 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) ) {