aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.lua
diff options
context:
space:
mode:
authorFelipe Morales <hel.sheep@gmail.com>2015-01-20 00:28:37 -0300
committerFelipe Morales <hel.sheep@gmail.com>2015-04-28 23:08:31 -0300
commitca883df007d7644a0ff4986d564ee8524f88c86b (patch)
treef808962165d66891c8d1ba5ba3a3afc23f79c4b4 /src/nvim/ex_cmds.lua
parentd2ad709a1e8eb9674e2744015cb609e941ea78f1 (diff)
downloadrneovim-ca883df007d7644a0ff4986d564ee8524f88c86b.tar.gz
rneovim-ca883df007d7644a0ff4986d564ee8524f88c86b.tar.bz2
rneovim-ca883df007d7644a0ff4986d564ee8524f88c86b.zip
vim-patch:7.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". https://code.google.com/p/vim/source/detail?r=v7-4-565
Diffstat (limited to 'src/nvim/ex_cmds.lua')
-rw-r--r--src/nvim/ex_cmds.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.lua b/src/nvim/ex_cmds.lua
index 2c61d330c7..cfcd9d23ea 100644
--- a/src/nvim/ex_cmds.lua
+++ b/src/nvim/ex_cmds.lua
@@ -2992,7 +2992,7 @@ return {
{
command='wincmd',
flags=bit.bor(NEEDARG, WORD1, RANGE, NOTADR),
- addr_type=ADDR_LINES,
+ addr_type=ADDR_WINDOWS,
func='ex_wincmd',
},
{