summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-10-25 17:52:23 +0200
committerBram Moolenaar <Bram@vim.org>2018-10-25 17:52:23 +0200
commit5f57bdcab77bc417ae0357fe8ad6c7259b6d25df (patch)
treef05f00dee1abb6472935bddc2adcfd74a3ec14ed /src/diff.c
parentc0fe4978f2311be9a0221d4c2369251c719b399a (diff)
downloadvim-git-5f57bdcab77bc417ae0357fe8ad6c7259b6d25df.tar.gz
patch 8.1.0497: :%diffput changes order of linesv8.1.0497
Problem: :%diffput changes order of lines. (Markus Braun) Solution: Do adjust marks when using internal diff.
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/diff.c b/src/diff.c
index 054924e67..23503d826 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -298,9 +298,9 @@ diff_mark_adjust_tp(
// Will update diffs before redrawing. Set _invalid to update the
// diffs themselves, set _update to also update folds properly just
// before redrawing.
+ // Do update marks here, it is needed for :%diffput.
tp->tp_diff_invalid = TRUE;
tp->tp_diff_update = TRUE;
- return;
}
if (line2 == MAXLNUM)
@@ -2850,7 +2850,7 @@ theend:
if (diff_need_update)
ex_diffupdate(NULL);
- // Check that the cursor is on a valid character and update it's
+ // Check that the cursor is on a valid character and update its
// position. When there were filler lines the topline has become
// invalid.
check_cursor();