diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2016-08-28 15:36:18 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2017-06-24 11:09:10 +0200 |
commit | 8b375cf471359ad7632af7fa6a2298c9b7596691 (patch) | |
tree | 83f6cd0f3aeaa6a1a659d403134cf42ac9b71ec6 /src/nvim/misc1.c | |
parent | 7873660e1ebbb6350609f4200296fc2ac4bf3035 (diff) | |
download | rneovim-8b375cf471359ad7632af7fa6a2298c9b7596691.tar.gz rneovim-8b375cf471359ad7632af7fa6a2298c9b7596691.tar.bz2 rneovim-8b375cf471359ad7632af7fa6a2298c9b7596691.zip |
bufhl: fix move
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r-- | src/nvim/misc1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 9630656f3f..835b9c7b20 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -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); } |