Changed sign_mark_adjust behaviour to match vim

Vim does not delete/free signs if they are placed on lines which get
deleted. In case of undo it does make a difference as in vim the sign
will be still available.
This commit is contained in:
Andrej Zieger 2019-05-22 09:14:10 +02:00
parent 93e18e698e
commit f2341164c6

View File

@ -656,11 +656,7 @@ void sign_mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_a
next = sign->next;
new_lnum = sign->lnum;
if (sign->lnum >= line1 && sign->lnum <= line2) {
if (amount == MAXLNUM) {
*lastp = next;
xfree(sign);
continue;
} else {
if (amount != MAXLNUM) {
new_lnum += amount;
}
} else if (sign->lnum > line2) {