move appended_lines

This commit is contained in:
Daniel Hahler
2019-06-09 16:00:01 +02:00
parent c2cd9178ca
commit d9f2d53239
2 changed files with 2 additions and 13 deletions

View File

@@ -333,10 +333,9 @@ void changed_bytes(linenr_T lnum, colnr_T col)
* Must be called AFTER the change and after mark_adjust(). * Must be called AFTER the change and after mark_adjust().
* Takes care of marking the buffer to be redrawn and sets the changed flag. * Takes care of marking the buffer to be redrawn and sets the changed flag.
*/ */
void void appended_lines(linenr_T lnum, long count)
appended_lines(linenr_T lnum, long count)
{ {
changed_lines(lnum + 1, 0, lnum + 1, count); changed_lines(lnum + 1, 0, lnum + 1, count, true);
} }
/* /*

View File

@@ -1785,16 +1785,6 @@ int gchar_pos(pos_T *pos)
return utf_ptr2char(ml_get_pos(pos)); return utf_ptr2char(ml_get_pos(pos));
} }
/*
* Appended "count" lines below line "lnum" in the current buffer.
* Must be called AFTER the change and after mark_adjust().
* Takes care of marking the buffer to be redrawn and sets the changed flag.
*/
void appended_lines(linenr_T lnum, long count)
{
changed_lines(lnum + 1, 0, lnum + 1, count, true);
}
/* /*
* Like appended_lines(), but adjust marks first. * Like appended_lines(), but adjust marks first.
*/ */