mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 22:08:18 +00:00
fix_cursor: do not change line number when edit will not impact cursor
row
This commit is contained in:
@@ -1918,7 +1918,6 @@ static void fix_cursor(linenr_T lo, linenr_T hi, linenr_T extra)
|
|||||||
curwin->w_cursor.lnum += extra;
|
curwin->w_cursor.lnum += extra;
|
||||||
check_cursor_col();
|
check_cursor_col();
|
||||||
} else if (extra < 0) {
|
} else if (extra < 0) {
|
||||||
curwin->w_cursor.lnum = lo;
|
|
||||||
check_cursor();
|
check_cursor();
|
||||||
} else {
|
} else {
|
||||||
check_cursor_col();
|
check_cursor_col();
|
||||||
|
Reference in New Issue
Block a user