Merge pull request #22625 from tomtomjhj/diff-on_bytes-once

fix(diff): trigger on_bytes only once after diffget/diffput
This commit is contained in:
bfredl
2023-03-11 12:33:01 +01:00
committed by GitHub
2 changed files with 20 additions and 1 deletions

View File

@@ -3136,7 +3136,7 @@ static void diffgetput(const int addr_count, const int idx_cur, const int idx_fr
if (added != 0) {
// Adjust marks. This will change the following entries!
mark_adjust(lnum, lnum + count - 1, (long)MAXLNUM, added, kExtmarkUndo);
mark_adjust(lnum, lnum + count - 1, (long)MAXLNUM, added, kExtmarkNOOP);
if (curwin->w_cursor.lnum >= lnum) {
// Adjust the cursor position if it's in/after the changed
// lines.