mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 7.4.2127
Problem: The short form of ":noswapfile" is ":noswap" instead of ":now". (Kent Sibilev) Solution: Only require three characters. Add a test for the short forms.
This commit is contained in:
@@ -1954,7 +1954,7 @@ do_one_cmd(
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
if (!checkforcmd(&ea.cmd, "noswapfile", 6))
|
||||
if (!checkforcmd(&ea.cmd, "noswapfile", 3))
|
||||
break;
|
||||
cmdmod.noswapfile = TRUE;
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user