diff src/testdir/test_terminal.vim @ 19398:f0033a10b613 v8.2.0257

patch 8.2.0257: cannot recognize a terminal in a popup window Commit: https://github.com/vim/vim/commit/00f3b4e007af07870168bf044cecc9d544483953 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 14 14:32:22 2020 +0100 patch 8.2.0257: cannot recognize a terminal in a popup window Problem: Cannot recognize a terminal in a popup window. Solution: Add the win_gettype() function.
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Feb 2020 14:45:04 +0100
parents 734ca70c1f12
children 763775897f2e
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim
+++ b/src/testdir/test_terminal.vim
@@ -2333,6 +2333,7 @@ func Test_terminal_in_popup()
   call writefile(text, 'Xtext')
   let cmd = GetVimCommandCleanTerm()
   let lines = [
+	\ 'set t_u7=',
 	\ 'call setline(1, range(20))',
 	\ 'hi PopTerm ctermbg=grey',
 	\ 'func OpenTerm(setColor)',
@@ -2346,6 +2347,9 @@ func Test_terminal_in_popup()
 	\ 'func HidePopup()',
 	\ '  call popup_hide(s:winid)',
 	\ 'endfunc',
+	\ 'sleep 10m',
+	\ 'redraw',
+	\ 'echo getwinvar(s:winid, "&buftype") win_gettype(s:winid)',
 	\ ]
   call writefile(lines, 'XtermPopup')
   let buf = RunVimInTerminal('-S XtermPopup', #{rows: 15})