diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-18 13:06:02 +0200 |
---|---|---|
committer | bfredl <bjorn.linse@gmail.com> | 2022-05-18 13:06:02 +0200 |
commit | 028329850e4a4fc9171518566ba7947d9e435f83 (patch) | |
tree | f46bb5f97cc58f82886a6e13729be1b7f00287fb /src/nvim/ui.c | |
parent | d7dd6007167eac919205404bc4e556237118a7a7 (diff) | |
download | rneovim-028329850e4a4fc9171518566ba7947d9e435f83.tar.gz rneovim-028329850e4a4fc9171518566ba7947d9e435f83.tar.bz2 rneovim-028329850e4a4fc9171518566ba7947d9e435f83.zip |
refactor: grid->rows and grid->cols
Diffstat (limited to 'src/nvim/ui.c')
-rw-r--r-- | src/nvim/ui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ui.c b/src/nvim/ui.c index 9e2d1f8e68..01583c032f 100644 --- a/src/nvim/ui.c +++ b/src/nvim/ui.c @@ -436,7 +436,7 @@ void ui_set_ext_option(UI *ui, UIExtension ext, bool active) void ui_line(ScreenGrid *grid, int row, int startcol, int endcol, int clearcol, int clearattr, bool wrap) { - assert(0 <= row && row < grid->Rows); + assert(0 <= row && row < grid->rows); LineFlags flags = wrap ? kLineFlagWrap : 0; if (startcol == -1) { startcol = 0; @@ -453,7 +453,7 @@ void ui_line(ScreenGrid *grid, int row, int startcol, int endcol, int clearcol, if (p_wd && !(rdb_flags & RDB_COMPOSITOR)) { // If 'writedelay' is active, set the cursor to indicate what was drawn. ui_call_grid_cursor_goto(grid->handle, row, - MIN(clearcol, (int)grid->Columns - 1)); + MIN(clearcol, (int)grid->cols - 1)); ui_call_flush(); uint64_t wd = (uint64_t)labs(p_wd); os_microdelay(wd * 1000u, true); |