runtime: support once on s:GetAutocmdPrefix (#16457)

Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
This commit is contained in:
Koichi Shiraishi
2021-12-11 04:28:55 +09:00
committed by GitHub
parent 8ad6015409
commit 63528f4686

View File

@@ -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, ' ')