diff src/diff.c @ 14770:27055ad9276b v8.1.0397

patch 8.1.0397: no event triggered after updating diffs commit https://github.com/vim/vim/commit/e8fa05b5bc2d6d76bf5af50176a63655d00d1110 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 16 15:48:06 2018 +0200 patch 8.1.0397: no event triggered after updating diffs Problem: No event triggered after updating diffs. Solution: Add the DiffUpdated event.
author Christian Brabandt <cb@256bit.org>
date Sun, 16 Sep 2018 16:00:07 +0200
parents 7a11facdf74b
children 09c1f241e2f7
line wrap: on
line diff
--- a/src/diff.c
+++ b/src/diff.c
@@ -942,6 +942,8 @@ ex_diffupdate(exarg_T *eap)	// "eap" can
     curwin->w_valid_cursor.lnum = 0;
 
     diff_redraw(TRUE);
+
+    apply_autocmds(EVENT_DIFFUPDATED, NULL, NULL, FALSE, curbuf);
 }
 
 /*