Fix nvim_buf_set_lines

This commit is contained in:
disrupted 2021-05-10 13:31:06 +02:00
parent 26139d3085
commit e5c22f6347
No known key found for this signature in database
GPG Key ID: A299EE8F816BBFA4

View File

@ -516,7 +516,7 @@ void nvim_buf_set_lines(uint64_t channel_id,
kExtmarkNOOP);
extmark_splice(curbuf, (int)start-1, 0, (int)(end-start), 0,
deleted_bytes, (int)(end+extra-1), 0, inserted_bytes,
deleted_bytes, (int)new_len, 0, inserted_bytes,
kExtmarkUndo);
changed_lines((linenr_T)start, 0, (linenr_T)end, (long)extra, true);