comparison src/screen.c @ 8577:63dc856bd13d v7.4.1578

commit https://github.com/vim/vim/commit/975b5271eed4fa0500c24a8f37be0b1797cb9db7 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 15 23:10:59 2016 +0100 patch 7.4.1578 Problem: There is no way to invoke a function later or periodically. Solution: Add timer support.
author Christian Brabandt <cb@256bit.org>
date Tue, 15 Mar 2016 23:15:05 +0100
parents 05b88224cea1
children 7c98c5d0298c
comparison
equal deleted inserted replaced
8576:3fd90fff8ab5 8577:63dc856bd13d
409 409
410 return ret; 410 return ret;
411 } 411 }
412 412
413 /* 413 /*
414 * Invoked after an asynchronous callback is called.
415 * If an echo command was used the cursor needs to be put back where
416 * it belongs. If highlighting was changed a redraw is needed.
417 */
418 void
419 redraw_after_callback()
420 {
421 update_screen(0);
422 setcursor();
423 cursor_on();
424 out_flush();
425 #ifdef FEAT_GUI
426 if (gui.in_use)
427 {
428 gui_update_cursor(TRUE, FALSE);
429 gui_mch_flush();
430 }
431 #endif
432 }
433
434 /*
414 * Changed something in the current window, at buffer line "lnum", that 435 * Changed something in the current window, at buffer line "lnum", that
415 * requires that line and possibly other lines to be redrawn. 436 * requires that line and possibly other lines to be redrawn.
416 * Used when entering/leaving Insert mode with the cursor on a folded line. 437 * Used when entering/leaving Insert mode with the cursor on a folded line.
417 * Used to remove the "$" from a change command. 438 * Used to remove the "$" from a change command.
418 * Note that when also inserting/deleting lines w_redraw_top and w_redraw_bot 439 * Note that when also inserting/deleting lines w_redraw_top and w_redraw_bot