0
0
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:
Bram Moolenaar
2016-07-30 19:39:29 +02:00
parent 90d121fa36
commit 3bcfca3ab4
3 changed files with 33 additions and 5 deletions

View File

@@ -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;