1
0
forked from aniani/vim

patch 7.4.1603

Problem:    Timer with an ":echo" command messes up display.
Solution:   Redraw depending on the mode. (Hirohito Higashi)  Avoid the more
            prompt being used recursively.
This commit is contained in:
Bram Moolenaar
2016-03-19 17:05:20 +01:00
parent cff572abb9
commit bfb96c047b
3 changed files with 22 additions and 2 deletions

View File

@@ -418,8 +418,15 @@ redraw_asap(int type)
void
redraw_after_callback()
{
update_screen(0);
setcursor();
if (State == HITRETURN || State == ASKMORE)
; /* do nothing */
else if (State & CMDLINE)
redrawcmdline();
else if ((State & NORMAL) || (State & INSERT))
{
update_screen(0);
setcursor();
}
cursor_on();
out_flush();
#ifdef FEAT_GUI