buf_attach: fix buffer updates with setline()

This commit is contained in:
Björn Linse
2020-09-15 10:11:11 +02:00
committed by Thomas Vigouroux
parent f34eeba2d8
commit 34c0f7af04
3 changed files with 26 additions and 5 deletions

View File

@@ -362,8 +362,7 @@ void changed_bytes(linenr_T lnum, colnr_T col)
/// insert/delete bytes at column
///
/// Like changed_bytes() but also adjust extmark for "new" bytes.
/// When "new" is negative text was deleted.
static void inserted_bytes(linenr_T lnum, colnr_T col, int old, int new)
void inserted_bytes(linenr_T lnum, colnr_T col, int old, int new)
{
if (curbuf_splice_pending == 0) {
extmark_splice_cols(curbuf, (int)lnum-1, col, old, new, kExtmarkUndo);