summaryrefslogtreecommitdiff
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-01-12 17:13:50 +0000
committerBram Moolenaar <Bram@vim.org>2008-01-12 17:13:50 +0000
commite77c760819db65d074d07a492b1749e99cc8adb0 (patch)
tree4b2bb7b3ed9df8c797c6fbda9b746376d2e5241e /src/edit.c
parent1f14d57a487a2b1018cc7cbaa8d7d81c80293274 (diff)
downloadvim-git-e77c760819db65d074d07a492b1749e99cc8adb0.tar.gz
updated for version 7.1-221v7.1.221
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c
index 4a9e1cf39..60fd65256 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;
}