diff options
author | Daniel Hahler <git@thequod.de> | 2019-06-09 16:00:01 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-08-07 14:21:23 +0200 |
commit | d9f2d53239b5d83f1e703508e44e4f09c68a108d (patch) | |
tree | 0f683506b2257b282065742d7e4f97c2f64bc27b /src | |
parent | c2cd9178ca73b2405714755253a268038ae202af (diff) | |
download | rneovim-d9f2d53239b5d83f1e703508e44e4f09c68a108d.tar.gz rneovim-d9f2d53239b5d83f1e703508e44e4f09c68a108d.tar.bz2 rneovim-d9f2d53239b5d83f1e703508e44e4f09c68a108d.zip |
move appended_lines
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/change.c | 5 | ||||
-rw-r--r-- | 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 @@ -1786,16 +1786,6 @@ int gchar_pos(pos_T *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. */ void appended_lines_mark(linenr_T lnum, long count) |