summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-01-14 11:25:05 +0100
committerBram Moolenaar <Bram@vim.org>2015-01-14 11:25:05 +0100
commit8be6388b7649d9378cd1ba1627a4b0aed61b86e7 (patch)
tree50fe6bae7c425ab720d5144df3ee9e18fdedffe1 /src/ex_docmd.c
parente2719096250a19ecdd9a35d13702879f163d2a50 (diff)
updated for version 7.4.568v7.4.568
Problem: Giving an error for ":0wincmd w" is a problem for some plugins. Solution: Allow the zero in the range. (Marcin Szamotulski)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 3276abfdbc..c36f407406 100644
--- 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: