Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
14769:a81c7ba51880 | 14770:27055ad9276b |
---|---|
940 | 940 |
941 // force updating cursor position on screen | 941 // force updating cursor position on screen |
942 curwin->w_valid_cursor.lnum = 0; | 942 curwin->w_valid_cursor.lnum = 0; |
943 | 943 |
944 diff_redraw(TRUE); | 944 diff_redraw(TRUE); |
945 | |
946 apply_autocmds(EVENT_DIFFUPDATED, NULL, NULL, FALSE, curbuf); | |
945 } | 947 } |
946 | 948 |
947 /* | 949 /* |
948 * Do a quick test if "diff" really works. Otherwise it looks like there | 950 * Do a quick test if "diff" really works. Otherwise it looks like there |
949 * are no differences. Can't use the return value, it's non-zero when | 951 * are no differences. Can't use the return value, it's non-zero when |