From f396c5923c71d7644785a44adbced3e3d3126a21 Mon Sep 17 00:00:00 2001 From: edyfox Date: Sun, 13 Jan 2008 07:39:28 +0000 Subject: [PATCH] Merged from the latest developing branch. git-svn-id: https://vim.svn.sourceforge.net/svnroot/vim/trunk@803 2a77ed30-b011-0410-a7ad-c7884a0aa172 --- src/edit.c | 8 ++++++++ src/version.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/src/edit.c b/src/edit.c index 4a9e1cf3..60fd6525 100644 --- a/src/edit.c +++ b/src/edit.c @@ -1455,6 +1455,14 @@ ins_redraw(ready) # endif ) { +# ifdef FEAT_SYN_HL + /* Need to update the screen first, to make sure syntax + * highlighting is correct after making a change (e.g., inserting + * a "(". The autocommand may also require a redraw, so it's done + * again below, unfortunately. */ + if (syntax_present(curbuf) && must_redraw) + update_screen(0); +# endif apply_autocmds(EVENT_CURSORMOVEDI, NULL, NULL, FALSE, curbuf); last_cursormoved = curwin->w_cursor; } diff --git a/src/version.c b/src/version.c index 019a2d2a..5765fe0d 100644 --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 221, +/**/ 220, /**/ 219, -- 2.11.4.GIT