Mercurial > vim
changeset 6480:747cbac7047b v7.4.568
updated for version 7.4.568
Problem: Giving an error for ":0wincmd w" is a problem for some plugins.
Solution: Allow the zero in the range. (Marcin Szamotulski)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 14 Jan 2015 11:25:05 +0100 |
parents | b3bc99b909c3 |
children | 2f8c3790366e |
files | src/ex_docmd.c src/testdir/test_command_count.ok src/version.c |
diffstat | 3 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -4686,8 +4686,7 @@ invalid_range(eap) return (char_u *)_(e_invrange); break; case ADDR_WINDOWS: - if (eap->line1 < 1 - || eap->line2 > LAST_WIN_NR) + if (eap->line2 > LAST_WIN_NR) return (char_u *)_(e_invrange); break; case ADDR_TABS: