mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 03:16:31 +00:00
fix(float): fix ml_get error with bufpos
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user