summaryrefslogtreecommitdiff
path: root/src/ex_cmds.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-01-07 15:57:17 +0100
committerBram Moolenaar <Bram@vim.org>2015-01-07 15:57:17 +0100
commit3ffc79a4a82918430940bfaa18f4da058fdbd0ca (patch)
tree23f835e3a04e947649932304913b06ddb6c09cae /src/ex_cmds.h
parent49a6ed8a8a5fa471bf99f8d068e7cb994c2af163 (diff)
downloadvim-git-3ffc79a4a82918430940bfaa18f4da058fdbd0ca.tar.gz
updated for version 7.4.565v7.4.565
Problem: Ranges for arguments, buffers, tabs, etc. are not checked to be valid but limited to the maximum. This can cause the wrong thing to happen. Solution: Give an error for an invalid value. (Marcin Szamotulski) Use windows range for ":wincmd".
Diffstat (limited to 'src/ex_cmds.h')
-rw-r--r--src/ex_cmds.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index 95a22898b..6396d60c2 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -1574,7 +1574,7 @@ EX(CMD_winsize, "winsize", ex_winsize,
ADDR_LINES),
EX(CMD_wincmd, "wincmd", ex_wincmd,
NEEDARG|WORD1|RANGE|NOTADR,
- ADDR_LINES),
+ ADDR_WINDOWS),
EX(CMD_windo, "windo", ex_listdo,
BANG|NEEDARG|EXTRA|NOTRLCOM,
ADDR_LINES),