]> granicus.if.org Git - vim/commitdiff
patch 8.2.2980: popup window test is a bit flaky v8.2.2980
authorBram Moolenaar <Bram@vim.org>
Sat, 12 Jun 2021 11:59:03 +0000 (13:59 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 12 Jun 2021 11:59:03 +0000 (13:59 +0200)
Problem:    Popup window test is a bit flaky.
Solution:   Add a redraw command.

src/testdir/test_popupwin.vim
src/version.c

index faadfe2777489ba46b0d6e178cec7607fde056ec..147a3a4ae6d2f05f706b8a2548ecc8b2cc531c85 100644 (file)
@@ -1552,6 +1552,7 @@ func Test_popup_filter()
   call assert_equal(9, getcurpos()[2])
   call feedkeys('0', 'xt')
   call assert_equal('0', g:ignored)
+  redraw
   call assert_equal(1, getcurpos()[2])
 
   " x closes the popup
index d55ab1a24485bfb526337a6cf329f64a3aa2aa3f..ac5cc997b90c0e0b5ffa8c02d7be2b1f099bc8da 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2980,
 /**/
     2979,
 /**/