mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 10:18:18 +00:00
fix(ui): doesn't trigger au event when enter is false
This commit is contained in:
@@ -190,7 +190,8 @@ Window nvim_open_win(Buffer buffer, Boolean enter, Dict(float_config) *config, E
|
||||
}
|
||||
// autocmds in win_enter or win_set_buf below may close the window
|
||||
if (win_valid(wp) && buffer > 0) {
|
||||
win_set_buf(wp, buf, fconfig.noautocmd, err);
|
||||
Boolean noautocmd = !enter || fconfig.noautocmd;
|
||||
win_set_buf(wp, buf, noautocmd, err);
|
||||
}
|
||||
if (!win_valid(wp)) {
|
||||
api_set_error(err, kErrorTypeException, "Window was closed immediately");
|
||||
|
Reference in New Issue
Block a user