aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-01-21 11:55:27 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-01-21 18:42:45 +0100
commita5d33d5e904d217d84171d7edcbb640cca73303a (patch)
tree6f19cd3efb300858d0a40b0ec1fff13821364a93 /src
parenta185ab70fd2eb8d55f1156cf7d5513338a309917 (diff)
downloadrneovim-a5d33d5e904d217d84171d7edcbb640cca73303a.tar.gz
rneovim-a5d33d5e904d217d84171d7edcbb640cca73303a.tar.bz2
rneovim-a5d33d5e904d217d84171d7edcbb640cca73303a.zip
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) https://github.com/vim/vim/commit/6f9a476b2f2f0bb5c50d703ec4fc535ffd5bfe8f
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_vimscript.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_vimscript.vim b/src/nvim/testdir/test_vimscript.vim
index f48b33e4d1..b18c2f5a85 100644
--- a/src/nvim/testdir/test_vimscript.vim
+++ b/src/nvim/testdir/test_vimscript.vim
@@ -1252,6 +1252,15 @@ func Test_delfunction_force()
delfunc! Xtest
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
" vim: ts=8 sw=4 tw=80 fdm=marker