1
0
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:
Bram Moolenaar
2021-08-05 20:40:03 +02:00
parent af647e76ca
commit 63b9173693
16 changed files with 90 additions and 36 deletions

View File

@@ -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