summaryrefslogtreecommitdiff
path: root/src/diff.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-05-18 18:47:17 +0200
committerBram Moolenaar <Bram@vim.org>2012-05-18 18:47:17 +0200
commitbd1d5608952dd1c61f99f9b2f605610405415622 (patch)
tree20c04b0c33df0d916164a1193c6db3a3419d11ed /src/diff.c
parent455981e69bcef65ef96ecf6b0a27810b585fc9d9 (diff)
downloadvim-git-bd1d5608952dd1c61f99f9b2f605610405415622.tar.gz
updated for version 7.3.523v7.3.523
Problem: ":diffupdate" doesn't check for files changed elsewhere. Solution: Add the ! flag. (Christian Brabandt)
Diffstat (limited to 'src/diff.c')
-rw-r--r--src/diff.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/diff.c b/src/diff.c
index 5844ec923..d9aaec828 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -783,6 +783,15 @@ ex_diffupdate(eap)
goto theend;
}
+ /* :diffupdate! */
+ if (eap != NULL && eap->forceit)
+ for (idx_new = idx_orig; idx_new < DB_COUNT; ++idx_new)
+ {
+ buf = curtab->tp_diffbuf[idx_new];
+ if (buf_valid(buf))
+ buf_check_timestamp(buf, FALSE);
+ }
+
/* Write the first buffer to a tempfile. */
buf = curtab->tp_diffbuf[idx_orig];
if (diff_write(buf, tmp_orig) == FAIL)