aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/window.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-07-19 09:12:58 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2019-07-19 15:57:19 +0200
commitaa28e070e9f953c26405d765addd9f780ede2c5a (patch)
tree0f209d5c07812b2617a2ead59ae58cf564d62c35 /src/nvim/window.c
parent75928101f84526d92f3a38b175cdd71820526e49 (diff)
downloadrneovim-aa28e070e9f953c26405d765addd9f780ede2c5a.tar.gz
rneovim-aa28e070e9f953c26405d765addd9f780ede2c5a.tar.bz2
rneovim-aa28e070e9f953c26405d765addd9f780ede2c5a.zip
refactor: use int for Columns and Rows
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r--src/nvim/window.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 38246bfe2a..377d712a50 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -1892,8 +1892,8 @@ void win_equal(
if (dir == 0)
dir = *p_ead;
win_equal_rec(next_curwin == NULL ? curwin : next_curwin, current,
- topframe, dir, 0, tabline_height(),
- (int)Columns, topframe->fr_height);
+ topframe, dir, 0, tabline_height(),
+ Columns, topframe->fr_height);
}
/*
@@ -4742,9 +4742,10 @@ void shell_new_columns(void)
/* First try setting the widths of windows with 'winfixwidth'. If that
* doesn't result in the right width, forget about that option. */
- frame_new_width(topframe, (int)Columns, FALSE, TRUE);
- if (!frame_check_width(topframe, Columns))
- frame_new_width(topframe, (int)Columns, FALSE, FALSE);
+ frame_new_width(topframe, Columns, false, true);
+ if (!frame_check_width(topframe, Columns)) {
+ frame_new_width(topframe, Columns, false, false);
+ }
(void)win_comp_pos(); /* recompute w_winrow and w_wincol */
}
@@ -4890,7 +4891,7 @@ void win_setheight_win(int height, win_T *win)
// If there is extra space created between the last window and the command
// line, clear it.
if (full_screen && msg_scrolled == 0 && row < cmdline_row) {
- grid_fill(&default_grid, row, cmdline_row, 0, (int)Columns, ' ', ' ', 0);
+ grid_fill(&default_grid, row, cmdline_row, 0, Columns, ' ', ' ', 0);
}
cmdline_row = row;
msg_row = row;
@@ -5352,7 +5353,7 @@ void win_drag_status_line(win_T *dragwin, int offset)
fr = fr->fr_next;
}
row = win_comp_pos();
- grid_fill(&default_grid, row, cmdline_row, 0, (int)Columns, ' ', ' ', 0);
+ grid_fill(&default_grid, row, cmdline_row, 0, Columns, ' ', ' ', 0);
cmdline_row = row;
p_ch = Rows - cmdline_row;
if (p_ch < 1)
@@ -5721,8 +5722,7 @@ void command_height(void)
// clear the lines added to cmdline
if (full_screen) {
- grid_fill(&default_grid, cmdline_row, (int)Rows, 0, (int)Columns, ' ',
- ' ', 0);
+ grid_fill(&default_grid, cmdline_row, Rows, 0, Columns, ' ', ' ', 0);
}
msg_row = cmdline_row;
redraw_cmdline = TRUE;