mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 11:56:30 +00:00
vim-patch:8.0.0656: cannot use ! after some user commands
[Test passes, and the code change doesn't look applicable. So this only
includes the test.]
Problem: Cannot use ! after some user commands.
Solution: Properly check for existing command. (Higashi Higashi)
6f9a476b2f
This commit is contained in:
@@ -1252,6 +1252,15 @@ func Test_delfunction_force()
|
|||||||
delfunc! Xtest
|
delfunc! Xtest
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
|
" Test using bang after user command {{{1
|
||||||
|
func Test_user_command_with_bang()
|
||||||
|
command -bang Nieuw let nieuw = 1
|
||||||
|
Ni!
|
||||||
|
call assert_equal(1, nieuw)
|
||||||
|
unlet nieuw
|
||||||
|
delcommand Nieuw
|
||||||
|
endfunc
|
||||||
|
|
||||||
"-------------------------------------------------------------------------------
|
"-------------------------------------------------------------------------------
|
||||||
" Modelines {{{1
|
" Modelines {{{1
|
||||||
" vim: ts=8 sw=4 tw=80 fdm=marker
|
" vim: ts=8 sw=4 tw=80 fdm=marker
|
||||||
|
Reference in New Issue
Block a user