mirror of
https://github.com/neovim/neovim.git
synced 2025-10-09 19:36:40 +00:00
bufhl: fix move
This commit is contained in:
@@ -751,7 +751,7 @@ open_line (
|
||||
// Skip mark_adjust when adding a line after the last one, there can't
|
||||
// be marks there.
|
||||
if (curwin->w_cursor.lnum + 1 < curbuf->b_ml.ml_line_count) {
|
||||
mark_adjust(curwin->w_cursor.lnum + 1, (linenr_T)MAXLNUM, 1L, 0L);
|
||||
mark_adjust(curwin->w_cursor.lnum + 1, (linenr_T)MAXLNUM, 1L, 0L, false);
|
||||
}
|
||||
did_append = true;
|
||||
} else {
|
||||
@@ -1866,7 +1866,7 @@ void appended_lines_mark(linenr_T lnum, long count)
|
||||
// Skip mark_adjust when adding a line after the last one, there can't
|
||||
// be marks there.
|
||||
if (lnum + count < curbuf->b_ml.ml_line_count) {
|
||||
mark_adjust(lnum + 1, (linenr_T)MAXLNUM, count, 0L);
|
||||
mark_adjust(lnum + 1, (linenr_T)MAXLNUM, count, 0L, false);
|
||||
}
|
||||
changed_lines(lnum + 1, 0, lnum + 1, count);
|
||||
}
|
||||
@@ -1888,7 +1888,7 @@ void deleted_lines(linenr_T lnum, long count)
|
||||
*/
|
||||
void deleted_lines_mark(linenr_T lnum, long count)
|
||||
{
|
||||
mark_adjust(lnum, (linenr_T)(lnum + count - 1), (long)MAXLNUM, -count);
|
||||
mark_adjust(lnum, (linenr_T)(lnum + count - 1), (long)MAXLNUM, -count, false);
|
||||
changed_lines(lnum, 0, lnum + count, -count);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user