diff options
author | chentau <tchen1998@gmail.com> | 2021-04-14 12:00:09 -0700 |
---|---|---|
committer | chentau <tchen1998@gmail.com> | 2021-04-14 21:47:21 -0700 |
commit | 5a36d413fbc6b34ea66df27b90ebd2f725475a77 (patch) | |
tree | e504f9e726c4932a4d4ffebbe76b0d0fee58d04d /src/nvim/extmark.c | |
parent | d9c7adc64c291f1a368c1417354332f72bdb66d6 (diff) | |
download | rneovim-5a36d413fbc6b34ea66df27b90ebd2f725475a77.tar.gz rneovim-5a36d413fbc6b34ea66df27b90ebd2f725475a77.tar.bz2 rneovim-5a36d413fbc6b34ea66df27b90ebd2f725475a77.zip |
flush curbuf->deleted_bytes2 after calling do_move
Diffstat (limited to 'src/nvim/extmark.c')
-rw-r--r-- | src/nvim/extmark.c | 1 |
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. |