aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_updates.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-09-11 19:30:46 +0200
committerGitHub <noreply@github.com>2020-09-11 19:30:46 +0200
commit997147e4bbb6c427e0b811d9d02991976afa9785 (patch)
tree0af5cb8480394d08b0ed6b9754192497877cfe3f /src/nvim/buffer_updates.c
parent7ba28b1aedcb88ef5643b32dc4a6bf92ac090fed (diff)
parenta8f71676a199b6ffccedf7388d4104431144b158 (diff)
downloadrneovim-997147e4bbb6c427e0b811d9d02991976afa9785.tar.gz
rneovim-997147e4bbb6c427e0b811d9d02991976afa9785.tar.bz2
rneovim-997147e4bbb6c427e0b811d9d02991976afa9785.zip
Merge pull request #12889 from vigoux/bytetrack-open-line
Fix invalid events with `o` `<CR>` and `autoindent`
Diffstat (limited to 'src/nvim/buffer_updates.c')
-rw-r--r--src/nvim/buffer_updates.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/buffer_updates.c b/src/nvim/buffer_updates.c
index 3435c5988c..fc671ad9e2 100644
--- a/src/nvim/buffer_updates.c
+++ b/src/nvim/buffer_updates.c
@@ -288,7 +288,8 @@ void buf_updates_send_splice(
int old_row, colnr_T old_col, bcount_t old_byte,
int new_row, colnr_T new_col, bcount_t new_byte)
{
- if (!buf_updates_active(buf)) {
+ if (!buf_updates_active(buf)
+ || (old_byte == 0 && new_byte == 0)) {
return;
}