diff src/testdir/test_popupwin.vim @ 16998:2ec0f953ec3f v8.1.1499

patch 8.1.1499: ruler not updated after popup window was removed commit https://github.com/vim/vim/commit/24a5ac5d4dbc4dc5d6d2b7e4dda6612dd9233f5d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 8 19:01:18 2019 +0200 patch 8.1.1499: ruler not updated after popup window was removed Problem: Ruler not updated after popup window was removed. Solution: use popup_mask in screen_puts().
author Bram Moolenaar <Bram@vim.org>
date Sat, 08 Jun 2019 19:15:06 +0200
parents ba7727889385
children 79c3a52fdb07
line wrap: on
line diff
--- a/src/testdir/test_popupwin.vim
+++ b/src/testdir/test_popupwin.vim
@@ -51,6 +51,19 @@ func Test_simple_popup()
   call term_sendkeys(buf, ":redraw\<CR>")
   call VerifyScreenDump(buf, 'Test_popupwin_06', {})
 
+  " move popup over ruler
+  call term_sendkeys(buf, ":set cmdheight=2\<CR>")
+  call term_sendkeys(buf, ":call popup_move(popupwin, {'line': 7, 'col': 55})\<CR>")
+  call VerifyScreenDump(buf, 'Test_popupwin_07', {})
+
+  " clear all popups after moving the cursor a bit, so that ruler is updated
+  call term_sendkeys(buf, "axxx\<Esc>")
+  call term_wait(buf)
+  call term_sendkeys(buf, "0")
+  call term_wait(buf)
+  call term_sendkeys(buf, ":popupclear\<CR>")
+  call VerifyScreenDump(buf, 'Test_popupwin_08', {})
+
   " clean up
   call StopVimInTerminal(buf)
   call delete('XtestPopup')