neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 8c2b8705445e7f9b2e638f8dbb50b6d715970cda
parent cf23695dd748281daaf68e69ac48bf9eb27f2425
Author: Gregory Anders <8965202+gpanders@users.noreply.github.com>
Date:   Mon, 27 Jun 2022 01:51:33 -0600

fix(api): change default value of 'pattern' in nvim_exec_autocmds (#19115)

Omitting 'pattern' in nvim_exec_autocmds should be equivalent to
omitting the 'fname' argument in :doautoall, which is equivalent to
using an empty string as the pattern. Fixes regression introduced
in #19091.
Diffstat:
Msrc/nvim/api/autocmd.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nvim/api/autocmd.c b/src/nvim/api/autocmd.c @@ -833,7 +833,7 @@ void nvim_exec_autocmds(Object event, Dict(exec_autocmds) *opts, Error *err) } if (patterns.size == 0) { - ADD(patterns, STRING_OBJ(STATIC_CSTR_TO_STRING("*"))); + ADD(patterns, STRING_OBJ(STATIC_CSTR_TO_STRING(""))); } if (opts->data.type != kObjectTypeNil) {