mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
move appended_lines
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -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.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user