diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-12-06 07:26:00 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-12-06 07:40:16 +0800 |
commit | e120a049f0e6594b317819bbc883d9040729bc93 (patch) | |
tree | 9f4ca78e8f30de4f375fff668e6886c0d0e7e6a5 /src/nvim/move.c | |
parent | 11d2704274ff817678e29f115ba1f074a52e519c (diff) | |
download | rneovim-e120a049f0e6594b317819bbc883d9040729bc93.tar.gz rneovim-e120a049f0e6594b317819bbc883d9040729bc93.tar.bz2 rneovim-e120a049f0e6594b317819bbc883d9040729bc93.zip |
fix(float): fix ml_get error with bufpos
Diffstat (limited to 'src/nvim/move.c')
-rw-r--r-- | src/nvim/move.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c index 05795bf858..fecd8130f0 100644 --- a/src/nvim/move.c +++ b/src/nvim/move.c @@ -933,7 +933,7 @@ void textpos2screenpos(win_T *wp, pos_T *pos, int *rowp, int *scolp, int *ccolp, bool existing_row = (pos->lnum > 0 && pos->lnum <= wp->w_buffer->b_ml.ml_line_count); - if ((local && existing_row) || visible_row) { + if ((local || visible_row) && existing_row) { colnr_T off; colnr_T col; int width; |