Mercurial > vim
comparison src/testdir/test_arglist.vim @ 23750:d98dcbc57f7f v8.2.2416
patch 8.2.2416: may get stuck in command line window state
Commit: https://github.com/vim/vim/commit/bed72df3e61a8908ed6324212595118f305dded0
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 27 20:34:29 2021 +0100
patch 8.2.2416: may get stuck in command line window state
Problem: May get stuck in command line window state.
Solution: Reset "cmdwin_type" when editing buffer fails. Make arglist test
pass on MS-Windows.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 27 Jan 2021 20:45:04 +0100 |
parents | 93f90f2ff4e9 |
children | 28f1b7c38ba1 |
comparison
equal
deleted
inserted
replaced
23749:7ac205554b4f | 23750:d98dcbc57f7f |
---|---|
561 endfunc | 561 endfunc |
562 | 562 |
563 " Test for ":all" not working when in the cmdline window | 563 " Test for ":all" not working when in the cmdline window |
564 func Test_all_not_allowed_from_cmdwin() | 564 func Test_all_not_allowed_from_cmdwin() |
565 CheckFeature cmdwin | 565 CheckFeature cmdwin |
566 " TODO: why does this hang on Windows? | |
567 CheckNotMSWindows | |
568 | 566 |
569 au BufEnter * all | 567 au BufEnter * all |
570 next x | 568 next x |
571 call assert_fails(":norm 7q?print\<CR>", 'E11:') | 569 " Use try/catch here, somehow assert_fails() doesn't work on MS-Windows |
570 " console. | |
571 let caught = 'no' | |
572 try | |
573 exe ":norm! 7q?apat\<CR>" | |
574 catch /E11:/ | |
575 let caught = 'yes' | |
576 endtry | |
577 call assert_equal('yes', caught) | |
572 au! BufEnter | 578 au! BufEnter |
573 endfunc | 579 endfunc |
574 | 580 |
575 " vim: shiftwidth=2 sts=2 expandtab | 581 " vim: shiftwidth=2 sts=2 expandtab |