vim-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.

3bcfca3ab4
This commit is contained in:
rover
2017-01-05 20:22:07 +08:00
parent e21aef1e10
commit 9da9e1c417
3 changed files with 32 additions and 6 deletions

View File

@@ -1374,7 +1374,7 @@ static char_u * do_one_cmd(char_u **cmdlinep,
}
continue;
}
if (!checkforcmd(&ea.cmd, "noswapfile", 6)) {
if (!checkforcmd(&ea.cmd, "noswapfile", 3)) {
break;
}
cmdmod.noswapfile = true;