comparison src/testdir/test_cmdline.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 02111977dd05
children 2f4be7ca1b1b
comparison
equal deleted inserted replaced
19397:826264ce48ff 19398:f0033a10b613
892 call assert_equal(1, winnr('$')) 892 call assert_equal(1, winnr('$'))
893 893
894 let g:cmd_wintype = '' 894 let g:cmd_wintype = ''
895 func CmdWinType() 895 func CmdWinType()
896 let g:cmd_wintype = getcmdwintype() 896 let g:cmd_wintype = getcmdwintype()
897 let g:wintype = win_gettype()
897 return '' 898 return ''
898 endfunc 899 endfunc
899 900
900 call feedkeys("\<C-c>a\<C-R>=CmdWinType()\<CR>\<CR>") 901 call feedkeys("\<C-c>a\<C-R>=CmdWinType()\<CR>\<CR>")
901 echo input('') 902 echo input('')
902 call assert_equal('@', g:cmd_wintype) 903 call assert_equal('@', g:cmd_wintype)
904 call assert_equal('command', g:wintype)
903 905
904 set cedit&vim 906 set cedit&vim
905 delfunc CmdWinType 907 delfunc CmdWinType
906 endfunc 908 endfunc
907 909