aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/extmark.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-04-17 08:58:00 +0200
committerGitHub <noreply@github.com>2021-04-17 08:58:00 +0200
commit7de75f0993e804811fd8059fb945c93512461ede (patch)
tree1ac21ed858c1096837ab7a9dea5cca3bd7be4259 /src/nvim/extmark.c
parenta6504ec3398af114585db1d1134335d838bdb8d9 (diff)
parent5a36d413fbc6b34ea66df27b90ebd2f725475a77 (diff)
downloadrneovim-7de75f0993e804811fd8059fb945c93512461ede.tar.gz
rneovim-7de75f0993e804811fd8059fb945c93512461ede.tar.bz2
rneovim-7de75f0993e804811fd8059fb945c93512461ede.zip
Merge pull request #14365 from chentau/extmark_delbytes_move
Extmarks: flush curbuf->deleted_bytes2 after calling do_move
Diffstat (limited to 'src/nvim/extmark.c')
-rw-r--r--src/nvim/extmark.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/extmark.c b/src/nvim/extmark.c
index cacbeddb32..2906a2196b 100644
--- a/src/nvim/extmark.c
+++ b/src/nvim/extmark.c
@@ -702,6 +702,7 @@ void extmark_move_region(
int new_row, colnr_T new_col, bcount_t new_byte,
ExtmarkOp undo)
{
+ curbuf->deleted_bytes2 = 0;
// TODO(bfredl): this is not synced to the buffer state inside the callback.
// But unless we make the undo implementation smarter, this is not ensured
// anyway.