aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-09-11 14:48:10 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-11 14:48:10 +0200
commita8f71676a199b6ffccedf7388d4104431144b158 (patch)
tree12cf3bce9946a330af77c8b3eeedbae3a99770c5 /src
parentf0e258cf8569b07153ed6beb1d31455e4de142f4 (diff)
downloadrneovim-a8f71676a199b6ffccedf7388d4104431144b158.tar.gz
rneovim-a8f71676a199b6ffccedf7388d4104431144b158.tar.bz2
rneovim-a8f71676a199b6ffccedf7388d4104431144b158.zip
fix(bufupdates): avoid sending empty updates
Diffstat (limited to 'src')
-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 79483380c9..4f56e5bf9e 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;
}