diff src/evalfunc.c @ 14871:f20df682c8af v8.1.0447

patch 8.1.0447: GUI scrollbar test fails with Athena and Motif commit https://github.com/vim/vim/commit/586c70cdfede55a166e3564f1cb68a299d81987d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 2 16:23:58 2018 +0200 patch 8.1.0447: GUI scrollbar test fails with Athena and Motif Problem: GUI scrollbar test fails with Athena and Motif. Solution: When not using on-the-fly scrolling call normal_cmd().
author Christian Brabandt <cb@256bit.org>
date Tue, 02 Oct 2018 16:30:05 +0200
parents 27b9a84395b5
children 0c845463a0db
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -3588,7 +3588,7 @@ f_feedkeys(typval_T *argvars, typval_T *
 
 		if (!dangerous)
 		    ++ex_normal_busy;
-		exec_normal(TRUE, TRUE);
+		exec_normal(TRUE, FALSE, TRUE);
 		if (!dangerous)
 		    --ex_normal_busy;
 
@@ -13233,6 +13233,10 @@ f_test_scrollbar(typval_T *argvars, typv
 	return;
     }
     gui_drag_scrollbar(sb, value, dragging);
+# ifndef USE_ON_FLY_SCROLL
+    // need to loop through normal_cmd() to handle the scroll events
+    exec_normal(FALSE, TRUE, FALSE);
+# endif
 }
 #endif