mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 07:58:35 +00:00
Merge pull request #14335 from chentau/extmark_delbytes
Extmarks: manually zero out `curbuf->deleted_bytes2` on substitute and join
This commit is contained in:
@@ -4237,6 +4237,8 @@ skip:
|
||||
}
|
||||
}
|
||||
|
||||
curbuf->deleted_bytes2 = 0;
|
||||
|
||||
if (first_line != 0) {
|
||||
/* Need to subtract the number of added lines from "last_line" to get
|
||||
* the line number before the change (same as adding the number of
|
||||
|
@@ -3992,6 +3992,7 @@ int do_join(size_t count,
|
||||
del_lines((long)count - 1, false);
|
||||
curwin->w_cursor.lnum = t;
|
||||
curbuf_splice_pending--;
|
||||
curbuf->deleted_bytes2 = 0;
|
||||
|
||||
/*
|
||||
* Set the cursor column:
|
||||
|
Reference in New Issue
Block a user