comparison src/screen.c @ 9428:0c7f47088e55 v7.4.1995

commit https://github.com/vim/vim/commit/9d5d3c9c4468ad76f16b50eabd3d9e7eab2ed44d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 7 16:43:02 2016 +0200 patch 7.4.1995 Problem: GUI: cursor drawn in wrong place if a timer callback causes a screen update. (David Samvelyan) Solution: Also redraw the cursor when it's blinking and on.
author Christian Brabandt <cb@256bit.org>
date Thu, 07 Jul 2016 16:45:08 +0200
parents b6472fd9f5ba
children e08c8502d7ce
comparison
equal deleted inserted replaced
9427:446d1452c131 9428:0c7f47088e55
430 cursor_on(); 430 cursor_on();
431 out_flush(); 431 out_flush();
432 #ifdef FEAT_GUI 432 #ifdef FEAT_GUI
433 if (gui.in_use) 433 if (gui.in_use)
434 { 434 {
435 /* Don't update the cursor while it is blinking, it will get 435 /* Don't update the cursor when it is blinking and off to avoid
436 * updated soon and this avoids interrupting the blinking. */ 436 * flicker. */
437 if (!gui_mch_is_blinking()) 437 if (!gui_mch_is_blink_off())
438 gui_update_cursor(FALSE, FALSE); 438 gui_update_cursor(FALSE, FALSE);
439 gui_mch_flush(); 439 gui_mch_flush();
440 } 440 }
441 #endif 441 #endif
442 } 442 }