fix(float): fix ml_get error with bufpos

(cherry picked from commit e120a049f0)
This commit is contained in:
zeertzjq
2022-12-06 07:26:00 +08:00
committed by github-actions[bot]
parent 9f5c5abd42
commit bc4d11cd9d
2 changed files with 2 additions and 2 deletions

View File

@@ -827,7 +827,7 @@ void win_config_float(win_T *wp, FloatConfig fconfig)
pos_T pos = { wp->w_float_config.bufpos.lnum + 1,
wp->w_float_config.bufpos.col, 0 };
int trow, tcol, tcolc, tcole;
textpos2screenpos(wp, &pos, &trow, &tcol, &tcolc, &tcole, true);
textpos2screenpos(parent, &pos, &trow, &tcol, &tcolc, &tcole, true);
row += trow - 1;
col += tcol - 1;
}