diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-18 21:18:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 21:18:34 +0200 |
commit | 6f0baa0bb7a57ec4451047876321eb6f24130b10 (patch) | |
tree | 4257741199bb61a7fc76b6f794445b6f74b85a16 /src/nvim/edit.c | |
parent | 3eea66d65a75c83cbd6bd7ec2aa0886781c807c9 (diff) | |
parent | 503d8b0892dbfee2d69286574f7eba3708b9a902 (diff) | |
download | rneovim-6f0baa0bb7a57ec4451047876321eb6f24130b10.tar.gz rneovim-6f0baa0bb7a57ec4451047876321eb6f24130b10.tar.bz2 rneovim-6f0baa0bb7a57ec4451047876321eb6f24130b10.zip |
Merge pull request #18620 from bfredl/multibar
fix(ui): make winbar work with floats and multigrid
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index aa77c03b48..d7e82729a9 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -1632,7 +1632,7 @@ void edit_putchar(int c, bool highlight) pc_col = 0; pc_status = PC_STATUS_UNSET; if (curwin->w_p_rl) { - pc_col += curwin->w_grid.Columns - 1 - curwin->w_wcol; + pc_col += curwin->w_grid.cols - 1 - curwin->w_wcol; const int fix_col = grid_fix_col(&curwin->w_grid, pc_col, pc_row); if (fix_col != pc_col) { @@ -1759,7 +1759,7 @@ void display_dollar(colnr_T col) char_u *p = get_cursor_line_ptr(); curwin->w_cursor.col -= utf_head_off(p, p + col); curs_columns(curwin, false); // Recompute w_wrow and w_wcol - if (curwin->w_wcol < curwin->w_grid.Columns) { + if (curwin->w_wcol < curwin->w_grid.cols) { edit_putchar('$', false); dollar_vcol = curwin->w_virtcol; } |