summaryrefslogtreecommitdiffstats
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-11-10 18:16:33 +0100
committerBram Moolenaar <Bram@vim.org>2016-11-10 18:16:33 +0100
commit459ca563128f2edb7e3bb190090bbb755a56dd55 (patch)
tree655c20d3f6b48349cb54d54c2812cfdbac3175fc /src/option.c
parent38bc49563782ee1cb91660e58acf1afe1a31020a (diff)
patch 8.0.0073v8.0.0073
Problem: More comparisons between firstwin and lastwin. Solution: Use ONE_WINDOW for consistency. (Hirohito Higashi)
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/option.c b/src/option.c
index c32a2a4f0a..ecfdc40dca 100644
--- a/src/option.c
+++ b/src/option.c
@@ -8551,7 +8551,7 @@ set_num_option(
}
/* Change window height NOW */
- if (lastwin != firstwin)
+ if (!ONE_WINDOW)
{
if (pp == &p_wh && curwin->w_height < p_wh)
win_setheight((int)p_wh);
@@ -8591,7 +8591,7 @@ set_num_option(
}
/* Change window width NOW */
- if (lastwin != firstwin && curwin->w_width < p_wiw)
+ if (!ONE_WINDOW && curwin->w_width < p_wiw)
win_setwidth((int)p_wiw);
}
@@ -10075,7 +10075,7 @@ istermoption(struct vimoption *p)
comp_col(void)
{
#if defined(FEAT_CMDL_INFO) && defined(FEAT_WINDOWS)
- int last_has_status = (p_ls == 2 || (p_ls == 1 && firstwin != lastwin));
+ int last_has_status = (p_ls == 2 || (p_ls == 1 && !ONE_WINDOW));
sc_col = 0;
ru_col = 0;