summaryrefslogtreecommitdiff
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-09-25 12:51:28 +0000
committerBram Moolenaar <Bram@vim.org>2007-09-25 12:51:28 +0000
commit719939c888fe583419eec652a7cc71172bf3afb1 (patch)
tree4ed0721c162b23f5f196dd5c1f0081af23525324 /src/option.c
parentb8dc4d4cdf95bac309bfff342da0eee5159c1c7e (diff)
downloadvim-git-719939c888fe583419eec652a7cc71172bf3afb1.tar.gz
updated for version 7.1-119v7.1.119
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c
index 59a2fa343..0bdc0a400 100644
--- a/src/option.c
+++ b/src/option.c
@@ -7824,6 +7824,8 @@ set_num_option(opt_idx, varp, value, errbuf, errbuflen, opt_flags)
errmsg = e_positive;
p_ch = 1;
}
+ if (p_ch > Rows - min_rows() + 1)
+ p_ch = Rows - min_rows() + 1;
/* Only compute the new window layout when startup has been
* completed. Otherwise the frame sizes may be wrong. */