mirror of
https://github.com/neovim/neovim.git
synced 2026-01-07 03:48:02 +10:00
runtime: support once on s:GetAutocmdPrefix (#16457)
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
This commit is contained in:
@@ -240,7 +240,11 @@ function! s:GetAutocmdPrefix(name, opts)
|
||||
endif
|
||||
|
||||
if has_key(a:opts, 'nested') && a:opts.nested
|
||||
call add(rv, 'nested')
|
||||
call add(rv, '++nested')
|
||||
endif
|
||||
|
||||
if has_key(a:opts, 'once') && a:opts.once
|
||||
call add(rv, '++once')
|
||||
endif
|
||||
|
||||
return join(rv, ' ')
|
||||
|
||||
Reference in New Issue
Block a user