fix(buffer_updates): make lockmarks not affect extmarks and buffer updates. fixes #12861

Now mark_adjust() will trigger appropriate buf_updates_send_splice() called by extmark_adjust()
This commit is contained in:
Anton Adamansky
2021-07-05 23:30:07 +07:00
committed by Björn Linse
parent 206f4429c6
commit 7d171b1c48
2 changed files with 51 additions and 4 deletions

View File

@@ -1036,9 +1036,10 @@ static void mark_adjust_internal(linenr_T line1, linenr_T line2, long amount, lo
}
sign_mark_adjust(line1, line2, amount, amount_after);
if (op != kExtmarkNOOP) {
extmark_adjust(curbuf, line1, line2, amount, amount_after, op);
}
}
if (op != kExtmarkNOOP) {
extmark_adjust(curbuf, line1, line2, amount, amount_after, op);
}
// previous context mark