1
0
forked from aniani/vim

patch 8.1.1486: a listener change is merged even when it adds a line

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)
This commit is contained in:
Bram Moolenaar
2019-06-06 22:50:35 +02:00
parent 773a97c254
commit 1253704591
3 changed files with 12 additions and 7 deletions

View File

@@ -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"))
{