From d9f2d53239b5d83f1e703508e44e4f09c68a108d Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 9 Jun 2019 16:00:01 +0200 Subject: move appended_lines --- src/nvim/change.c | 5 ++--- src/nvim/misc1.c | 10 ---------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/nvim/change.c b/src/nvim/change.c index 5f2157fa04..4267429c25 100644 --- a/src/nvim/change.c +++ b/src/nvim/change.c @@ -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); } /* diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 2083eb9201..f12fc574c7 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -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. */ -- cgit