mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
move appended_lines
This commit is contained in:
parent
c2cd9178ca
commit
d9f2d53239
@ -333,10 +333,9 @@ void changed_bytes(linenr_T lnum, colnr_T col)
|
||||
* 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)
|
||||
void appended_lines(linenr_T lnum, long count)
|
||||
{
|
||||
changed_lines(lnum + 1, 0, lnum + 1, count);
|
||||
changed_lines(lnum + 1, 0, lnum + 1, count, true);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1785,16 +1785,6 @@ int gchar_pos(pos_T *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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user