1
0
forked from aniani/vim

patch 7.4.1452

Problem:    When a callback adds a syntax item either the redraw doesn't
            happen right away or in the GUI the cursor is in the wrong
            position for a moment. (Jakson Alves de Aquino)
Solution:   Redraw after the callback was invoked.
This commit is contained in:
Bram Moolenaar 2016-02-28 19:30:24 +01:00
parent 707659490d
commit 18b5d6df10
2 changed files with 8 additions and 1 deletions

View File

@ -945,10 +945,15 @@ invoke_callback(channel_T *channel, char_u *callback, typval_T *argv)
clear_tv(&rettv);
/* If an echo command was used the cursor needs to be put back where
* it belongs. */
* it belongs. If highlighting was changed a redraw is needed. */
update_screen(0);
setcursor();
cursor_on();
out_flush();
#ifdef FEAT_GUI
gui_update_cursor(TRUE, FALSE);
gui_mch_flush();
#endif
}
/*

View File

@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1452,
/**/
1451,
/**/