mirror of
https://github.com/neovim/neovim.git
synced 2026-03-31 04:42:03 +00:00
vim-patch:8.2.3159: cursor displayed in wrong position after deleting line
Problem: Cursor displayed in wrong position after deleting line.
Solution: When deleting lines do not approximate botline. (fixes vim/vim#8559)
5bea41dea3
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
committed by
Jan Edmund Lazo
parent
ff8edbaa6c
commit
b480b0cd5d
@@ -177,9 +177,13 @@ static void changed_lines_invalidate_win(win_T *wp, linenr_T lnum, colnr_T col,
|
||||
changed_cline_bef_curs(wp);
|
||||
}
|
||||
if (wp->w_botline >= lnum) {
|
||||
// Assume that botline doesn't change (inserted lines make
|
||||
// other lines scroll down below botline).
|
||||
approximate_botline_win(wp);
|
||||
if (xtra < 0) {
|
||||
invalidate_botline_win(wp);
|
||||
} else {
|
||||
// Assume that botline doesn't change (inserted lines make
|
||||
// other lines scroll down below botline).
|
||||
approximate_botline_win(wp);
|
||||
}
|
||||
}
|
||||
|
||||
// If lines have been inserted/deleted and the buffer has virt_lines, or
|
||||
|
||||
Reference in New Issue
Block a user