diff options
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/window.c b/src/window.c index 1b0c2013e9..d47ed22720 100644 --- a/src/window.c +++ b/src/window.c @@ -1516,8 +1516,7 @@ win_equal_rec ( if (totwincount == 0) new_size = room; else - new_size = (wincount * room + ((unsigned)totwincount >> 1)) - / totwincount; + new_size = (wincount * room + (totwincount / 2)) / totwincount; if (hnc) { /* add next_curwin size */ next_curwin_size -= p_wiw - (m - n); new_size += next_curwin_size; @@ -1638,8 +1637,7 @@ win_equal_rec ( if (totwincount == 0) new_size = room; else - new_size = (wincount * room + ((unsigned)totwincount >> 1)) - / totwincount; + new_size = (wincount * room + (totwincount / 2)) / totwincount; if (hnc) { /* add next_curwin size */ next_curwin_size -= p_wh - (m - n); new_size += next_curwin_size; @@ -4644,7 +4642,7 @@ void win_new_width(win_T *wp, int width) void win_comp_scroll(win_T *wp) { - wp->w_p_scr = ((unsigned)wp->w_height >> 1); + wp->w_p_scr = wp->w_height / 2; if (wp->w_p_scr == 0) wp->w_p_scr = 1; } |