diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-07-24 20:08:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-24 20:08:01 +0100 |
commit | c963ec31a0c293d629e40cb082d4bfb1651def49 (patch) | |
tree | f93897f6bfe81dd5692f5f06b23fedb1881368c9 /src/testdir/test_cmdwin.vim | |
parent | d61efa50f8f5b9d9dcbc136705cc33874f0fdcb3 (diff) |
patch 9.0.0064: confusing error when using "q:" in command line windowv9.0.0064
Problem: Confusing error when using "q:" in command line window.
Solution: Check for the situation and give a better error message.
(closes #10756)
Diffstat (limited to 'src/testdir/test_cmdwin.vim')
-rw-r--r-- | src/testdir/test_cmdwin.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_cmdwin.vim b/src/testdir/test_cmdwin.vim index 45ecdd11c6..d641b29230 100644 --- a/src/testdir/test_cmdwin.vim +++ b/src/testdir/test_cmdwin.vim @@ -356,5 +356,14 @@ func Test_cmdwin_ctrl_bsl() call assert_equal('', getcmdwintype()) endfunc +func Test_cant_open_cmdwin_in_cmdwin() + try + call feedkeys("q:q::q\<CR>", "x!") + catch + let caught = v:exception + endtry + call assert_match('E1292:', caught) +endfunc + " vim: shiftwidth=2 sts=2 expandtab |