commit | 3bcfca3ab4db415d0e750e00204dd25a91fcee77 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Jul 30 19:39:29 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Jul 30 19:39:29 2016 +0200 |
tree | 648834bb80120baa518101b1612d6e24a6fb62f4 | |
parent | 90d121fa3637b423169c64528efe84a1e67060c9 [diff] [blame] |
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.
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 34c9955..1a7fbfa 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c
@@ -1954,7 +1954,7 @@ #endif continue; } - if (!checkforcmd(&ea.cmd, "noswapfile", 6)) + if (!checkforcmd(&ea.cmd, "noswapfile", 3)) break; cmdmod.noswapfile = TRUE; continue;