]> granicus.if.org Git - vim/commitdiff
patch 8.2.2610: mouse click test fails when using remote connection v8.2.2610
authorBram Moolenaar <Bram@vim.org>
Tue, 16 Mar 2021 20:17:16 +0000 (21:17 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 16 Mar 2021 20:17:16 +0000 (21:17 +0100)
Problem:    Mouse click test fails when using remote connection.
Solution:   Use a larger 'mousetime'. (Dominique PellĂ©, closes #7968)

src/testdir/test_selectmode.vim
src/version.c

index 3adb843cb847c7d30bc0cd33497114a799fefa5a..3296f7e7022ca6fa06b8e8b67fb838da2c3a8852 100644 (file)
@@ -165,7 +165,10 @@ func Test_term_mouse_multiple_clicks_to_select_mode()
   let save_term = &term
   let save_ttymouse = &ttymouse
   call test_override('no_query_mouse', 1)
-  set mouse=a term=xterm mousetime=200
+
+  " 'mousetime' must be sufficiently large, or else the test is flaky when
+  " using a ssh connection with X forwarding; i.e. ssh -X.
+  set mouse=a term=xterm mousetime=1000
   set selectmode=mouse
   new
 
index ef2f0cb31e81d05b8d5053416d33a841efc7d763..7b0771e7f0f58e6fee972c300eced0679864dc9b 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2610,
 /**/
     2609,
 /**/