aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-25 01:32:48 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-25 02:10:44 -0500
commitede747c2cc84382e8746df8992ef0e403647ffde (patch)
tree852fb497e457dd60c9b3d07fd905e69b85e8aa82 /src/nvim/testdir
parenta9186501f6070a655f96207881a54bf509bd79ce (diff)
downloadrneovim-ede747c2cc84382e8746df8992ef0e403647ffde.tar.gz
rneovim-ede747c2cc84382e8746df8992ef0e403647ffde.tar.bz2
rneovim-ede747c2cc84382e8746df8992ef0e403647ffde.zip
vim-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. https://github.com/vim/vim/commit/00f3b4e007af07870168bf044cecc9d544483953
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_cmdline.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim
index 400e53d009..81f653c393 100644
--- a/src/nvim/testdir/test_cmdline.vim
+++ b/src/nvim/testdir/test_cmdline.vim
@@ -806,12 +806,14 @@ func Test_cmdwin_cedit()
let g:cmd_wintype = ''
func CmdWinType()
let g:cmd_wintype = getcmdwintype()
+ let g:wintype = win_gettype()
return ''
endfunc
call feedkeys("\<C-c>a\<C-R>=CmdWinType()\<CR>\<CR>")
echo input('')
call assert_equal('@', g:cmd_wintype)
+ call assert_equal('command', g:wintype)
set cedit&vim
delfunc CmdWinType