Mercurial > vim
changeset 1506:64ed4359d957 v7.1.221
updated for version 7.1-221
author | vimboss |
---|---|
date | Sat, 12 Jan 2008 17:13:50 +0000 |
parents | 184a6091124e |
children | a6776e2c9f01 |
files | src/edit.c src/version.c |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }