comparison src/screen.c @ 8627:7c98c5d0298c v7.4.1603

commit https://github.com/vim/vim/commit/bfb96c047b79b2aab5fd57a2472871508819f3ef Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 19 17:05:20 2016 +0100 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.
author Christian Brabandt <cb@256bit.org>
date Sat, 19 Mar 2016 17:15:04 +0100
parents 63dc856bd13d
children 24b43dd167eb
comparison
equal deleted inserted replaced
8626:418a2a5ac8af 8627:7c98c5d0298c
416 * it belongs. If highlighting was changed a redraw is needed. 416 * it belongs. If highlighting was changed a redraw is needed.
417 */ 417 */
418 void 418 void
419 redraw_after_callback() 419 redraw_after_callback()
420 { 420 {
421 update_screen(0); 421 if (State == HITRETURN || State == ASKMORE)
422 setcursor(); 422 ; /* do nothing */
423 else if (State & CMDLINE)
424 redrawcmdline();
425 else if ((State & NORMAL) || (State & INSERT))
426 {
427 update_screen(0);
428 setcursor();
429 }
423 cursor_on(); 430 cursor_on();
424 out_flush(); 431 out_flush();
425 #ifdef FEAT_GUI 432 #ifdef FEAT_GUI
426 if (gui.in_use) 433 if (gui.in_use)
427 { 434 {