forked from aniani/vim
patch 8.2.3297: cannot use all commands inside a {} block
Problem: Cannot use all commands inside a {} block after :command and :autocmd. Solution: Do consider \n to separate commands. (closes #8620)
This commit is contained in:
@@ -645,6 +645,14 @@ func Test_usercmd_with_block()
|
||||
echo 'hello'
|
||||
END
|
||||
call CheckScriptFailure(lines, 'E1026:')
|
||||
|
||||
let lines =<< trim END
|
||||
command BarCommand {
|
||||
echo 'hello' | echo 'there'
|
||||
}
|
||||
BarCommand
|
||||
END
|
||||
call CheckScriptFailure(lines, 'E1231:')
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Reference in New Issue
Block a user