aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
authortimeyyy <timeyyy_da_man@hotmail.com>2017-01-18 13:20:07 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2019-11-11 19:43:15 +0100
commita9065a50518ef59351f9d0d32041a991a751653f (patch)
tree4448b4895b8977fcb09b8d87060cfa20fb8058b9 /src/nvim/diff.c
parente757f4d5363125e242f1e680d1f5bb53e8014b06 (diff)
downloadrneovim-a9065a50518ef59351f9d0d32041a991a751653f.tar.gz
rneovim-a9065a50518ef59351f9d0d32041a991a751653f.tar.bz2
rneovim-a9065a50518ef59351f9d0d32041a991a751653f.zip
nsmarks: initial commit
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r--src/nvim/diff.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c
index 31552929dc..313f77474d 100644
--- a/src/nvim/diff.c
+++ b/src/nvim/diff.c
@@ -2690,7 +2690,8 @@ void ex_diffgetput(exarg_T *eap)
// Adjust marks. This will change the following entries!
if (added != 0) {
- mark_adjust(lnum, lnum + count - 1, (long)MAXLNUM, (long)added, false);
+ mark_adjust(lnum, lnum + count - 1, (long)MAXLNUM, (long)added, false,
+ kExtmarkUndo);
if (curwin->w_cursor.lnum >= lnum) {
// Adjust the cursor position if it's in/after the changed
// lines.