summaryrefslogtreecommitdiff
path: root/src/change.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-06 22:50:35 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-06 22:50:35 +0200
commit125370459178b0ca3acc98edca774c390c9b9fa4 (patch)
tree296eefc52a5cd8cc65b934ef40abafab9ea12653 /src/change.c
parent773a97c254d02784079fb3b20447620412588850 (diff)
downloadvim-git-125370459178b0ca3acc98edca774c390c9b9fa4.tar.gz
patch 8.1.1486: a listener change is merged even when it adds a linev8.1.1486
Problem: A listener change is merged even when it adds a line. (Paul Jolly) Solution: Do not merge a change that adds or removes a line. (closes #4490)
Diffstat (limited to 'src/change.c')
-rw-r--r--src/change.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/change.c b/src/change.c
index 07985ee62..fcaa5708a 100644
--- a/src/change.c
+++ b/src/change.c
@@ -186,6 +186,7 @@ check_recorded_changes(
|| (prev_lnume >= lnum && xtra != 0))
{
if (li->li_next == NULL && lnum == prev_lnum
+ && xtra == 0
&& col + 1 == (colnr_T)dict_get_number(
li->li_tv.vval.v_dict, (char_u *)"col"))
{