aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-03-11 12:33:01 +0100
committerGitHub <noreply@github.com>2023-03-11 12:33:01 +0100
commitf3efcd0348d34e4ebb44bde3be310379fb84a5a9 (patch)
treeb2ad87fbe69d5404a300e684ce871f81bb8e0f2d /src
parent402c31a82d2961172c6eaf8014762f28c60bd93e (diff)
parent2748202e0eb28574cdc65dcb758adea89023271d (diff)
downloadrneovim-f3efcd0348d34e4ebb44bde3be310379fb84a5a9.tar.gz
rneovim-f3efcd0348d34e4ebb44bde3be310379fb84a5a9.tar.bz2
rneovim-f3efcd0348d34e4ebb44bde3be310379fb84a5a9.zip
Merge pull request #22625 from tomtomjhj/diff-on_bytes-once
fix(diff): trigger on_bytes only once after diffget/diffput
Diffstat (limited to 'src')
-rw-r--r--src/nvim/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c
index 289939b2ca..52c5732f23 100644
--- a/src/nvim/diff.c
+++ b/src/nvim/diff.c
@@ -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.