aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorrover <pathfinder2013@126.com>2017-01-05 20:22:07 +0800
committerrover <pathfinder2013@126.com>2017-01-05 21:12:02 +0800
commit9da9e1c417154e8a05c862eb1ee1d3c0662c0975 (patch)
tree1b51a4c10fd9df30d3caa879a50770eb3517b24a /src/nvim/ex_docmd.c
parente21aef1e1002581dc653176eb3d7d4f2b06424f8 (diff)
downloadrneovim-9da9e1c417154e8a05c862eb1ee1d3c0662c0975.tar.gz
rneovim-9da9e1c417154e8a05c862eb1ee1d3c0662c0975.tar.bz2
rneovim-9da9e1c417154e8a05c862eb1ee1d3c0662c0975.zip
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. https://github.com/vim/vim/commit/3bcfca3ab4db415d0e750e00204dd25a91fcee77
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 79a0b5849f..35eb849d86 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -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;