diff options
| author | Sean Dewar <seandewar@users.noreply.github.com> | 2023-08-11 10:09:51 +0100 |
|---|---|---|
| committer | Sean Dewar <seandewar@users.noreply.github.com> | 2024-01-28 12:29:42 +0000 |
| commit | 7bb0dd08dbcd8cfeeaea725e2c00e9e5cfcae2bd (patch) | |
| tree | c3e1606a409a8b3376dfcfde9192de1106d3851f /test/old/testdir/test_cmdline.vim | |
| parent | cf140fb25b94c556396fe942a4af3e8db9effa37 (diff) | |
| download | rneovim-7bb0dd08dbcd8cfeeaea725e2c00e9e5cfcae2bd.tar.gz rneovim-7bb0dd08dbcd8cfeeaea725e2c00e9e5cfcae2bd.tar.bz2 rneovim-7bb0dd08dbcd8cfeeaea725e2c00e9e5cfcae2bd.zip | |
vim-patch:9.1.0048: Abort opening cmdwin if autocmds screw things up
Problem: Autocmds triggered from opening the cmdwin (in win_split and
do_ecmd) can cause issues such as E199, as the current checks
are insufficient.
Solution: Commands executed from the cmdwin apply to the old curwin/buf,
so they should be kept in a "suspended" state; abort if
they've changed. Also abort if cmdwin/buf was tampered with,
and check that curwin is correct. Try to clean up the cmdwin
buffer (only if hidden and non-current to simplify things; the
same approach is used when closing cmdwin normally), and add a
beep. (Sean Dewar)
Rename the old Test_cmdwin_interrupted() like in the patch (can be moved to
test_cmdwin.vim when v9.0.0027 is ported).
Move the error message to `e_active_window_or_buffer_changed_or_deleted`.
https://github.com/vim/vim/commit/43b395ec2e7d24a067d7cb00109818b64da144a5
Diffstat (limited to 'test/old/testdir/test_cmdline.vim')
| -rw-r--r-- | test/old/testdir/test_cmdline.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/old/testdir/test_cmdline.vim b/test/old/testdir/test_cmdline.vim index 8210fc2310..f62a89aec8 100644 --- a/test/old/testdir/test_cmdline.vim +++ b/test/old/testdir/test_cmdline.vim @@ -1885,7 +1885,7 @@ func Test_cmdwin_tabpage() tabclose! endfunc -func Test_cmdwin_interrupted() +func Test_cmdwin_interrupted_more_prompt() CheckScreendump " aborting the :smile output caused the cmdline window to use the current |