mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
93e18e698e
commit
f2341164c6
@ -656,11 +656,7 @@ void sign_mark_adjust(linenr_T line1, linenr_T line2, long amount, long amount_a
|
|||||||
next = sign->next;
|
next = sign->next;
|
||||||
new_lnum = sign->lnum;
|
new_lnum = sign->lnum;
|
||||||
if (sign->lnum >= line1 && sign->lnum <= line2) {
|
if (sign->lnum >= line1 && sign->lnum <= line2) {
|
||||||
if (amount == MAXLNUM) {
|
if (amount != MAXLNUM) {
|
||||||
*lastp = next;
|
|
||||||
xfree(sign);
|
|
||||||
continue;
|
|
||||||
} else {
|
|
||||||
new_lnum += amount;
|
new_lnum += amount;
|
||||||
}
|
}
|
||||||
} else if (sign->lnum > line2) {
|
} else if (sign->lnum > line2) {
|
||||||
|
Loading…
Reference in New Issue
Block a user