diff src/main.c @ 29960:4fcf816aa806 v9.0.0318

patch 9.0.0318: clearing screen causes flicker Commit: https://github.com/vim/vim/commit/13608d851a0470ced30921428b3313c023d395d8 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 29 15:06:50 2022 +0100 patch 9.0.0318: clearing screen causes flicker Problem: Clearing screen causes flicker. Solution: Do not clear but redraw in more cases. Add () to "wait_return".
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Aug 2022 16:15:04 +0200
parents 68ef14b21d01
children 458162398682
line wrap: on
line diff
--- a/src/main.c
+++ b/src/main.c
@@ -651,7 +651,7 @@ vim_main2(void)
 
     /*
      * When done something that is not allowed or given an error message call
-     * wait_return.  This must be done before starttermcap(), because it may
+     * wait_return().  This must be done before starttermcap(), because it may
      * switch to another screen. It must be done after settmode(TMODE_RAW),
      * because we want to react on a single key stroke.
      * Call settmode and starttermcap here, so the T_KS and T_TI may be
@@ -1226,7 +1226,7 @@ main_loop(
 	    did_check_timestamps = FALSE;
 	    if (need_check_timestamps)
 		check_timestamps(FALSE);
-	    if (need_wait_return)	// if wait_return still needed ...
+	    if (need_wait_return)	// if wait_return() still needed ...
 		wait_return(FALSE);	// ... call it now
 	    if (need_start_insertmode && goto_im() && !VIsual_active)
 	    {