mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 04:58:33 +00:00
buf_attach: fix buffer updates with setline()
This commit is contained in:

committed by
Thomas Vigouroux

parent
f34eeba2d8
commit
34c0f7af04
@@ -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);
|
||||
|
Reference in New Issue
Block a user