0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.3268: cannot use a block with :autocmd like with :command

Problem:    Cannot use a block with :autocmd like with :command.
Solution:   Add support for a {} block after :autocmd. (closes #8620)
This commit is contained in:
Bram Moolenaar
2021-08-01 14:52:32 +02:00
parent 6db660bed9
commit 73b8b0ae3a
10 changed files with 100 additions and 50 deletions

View File

@@ -2739,4 +2739,9 @@ long elapsed(DWORD start_tick);
// flags for equal_type()
#define ETYPE_ARG_UNKNOWN 1
// flags used by user commands and :autocmd
#define UC_BUFFER 1 // -buffer: local to current buffer
#define UC_VIM9 2 // {} argument: Vim9 syntax.
#endif // VIM__H