comparison src/testdir/test_vim9_cmd.vim @ 25485:7d24fdd18672 v8.2.3279

patch 8.2.3279: Vim9: cannot use block in cmdline window Commit: https://github.com/vim/vim/commit/2c70711e3fb2ef24a7f55322fdadbf7f9e657c2f Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 2 22:26:56 2021 +0200 patch 8.2.3279: Vim9: cannot use block in cmdline window Problem: Vim9: cannot use block in cmdline window. Solution: Add EX_CMDWIN to the CMD_block flags. (closes https://github.com/vim/vim/issues/8689)
author Bram Moolenaar <Bram@vim.org>
date Mon, 02 Aug 2021 22:30:04 +0200
parents 7124992f26ef
children 9f691e8a74e3
comparison
equal deleted inserted replaced
25484:5242c4ad09dd 25485:7d24fdd18672
1260 unlet g:cond 1260 unlet g:cond
1261 1261
1262 # List results in multiple lines 1262 # List results in multiple lines
1263 new 1263 new
1264 setline(1, 'some text here') 1264 setline(1, 'some text here')
1265 s/text/\=['aaa', 'bbb', 'ccc']/ 1265 s/text/\=['aaa', 'bbb', 'ccc']/
1266 assert_equal(['some aaa', 'bbb', 'ccc', ' here'], getline(1, '$')) 1266 assert_equal(['some aaa', 'bbb', 'ccc', ' here'], getline(1, '$'))
1267 bwipe! 1267 bwipe!
1268 enddef 1268 enddef
1269 1269
1270 def Test_redir_to_var() 1270 def Test_redir_to_var()
1336 defcompile 1336 defcompile
1337 END 1337 END
1338 CheckScriptFailure(lines, 'E1186:', 1) 1338 CheckScriptFailure(lines, 'E1186:', 1)
1339 enddef 1339 enddef
1340 1340
1341 def Test_cmdwin_block()
1342 augroup justTesting
1343 autocmd BufEnter * {
1344 echomsg 'in block'
1345 }
1346 augroup END
1347 feedkeys('q:', 'xt')
1348 redraw
1349 feedkeys("aclose\<CR>", 'xt')
1350
1351 au! justTesting
1352 enddef
1353
1341 1354
1342 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker 1355 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker