fix(ui): redraw end of buffer if last line is modified (#20354)

This commit is contained in:
zeertzjq
2022-09-27 06:33:48 +08:00
committed by GitHub
parent 9a5ac06509
commit 7e98821e56
2 changed files with 106 additions and 1 deletions

View File

@@ -1965,7 +1965,8 @@ win_update_start:
if (mid_end >= row) {
lastline = MIN(lastline, mid_start);
}
if (mod_bot > buf->b_ml.ml_line_count + 1) {
// if (mod_bot > buf->b_ml.ml_line_count + 1) {
if (mod_bot > buf->b_ml.ml_line_count) {
lastline = 0;
}