mirror of
https://github.com/neovim/neovim.git
synced 2025-09-21 18:58:18 +00:00
Merge pull request #25096 from glepnir/float_winnew
fix(float): trigger winnew event when float window create
This commit is contained in:
@@ -197,6 +197,9 @@ Window nvim_open_win(Buffer buffer, Boolean enter, Dict(float_config) *config, E
|
||||
if (win_valid(wp) && buffer > 0) {
|
||||
Boolean noautocmd = !enter || fconfig.noautocmd;
|
||||
win_set_buf(wp, buf, noautocmd, err);
|
||||
if (!fconfig.noautocmd) {
|
||||
apply_autocmds(EVENT_WINNEW, NULL, NULL, false, buf);
|
||||
}
|
||||
}
|
||||
if (!win_valid(wp)) {
|
||||
api_set_error(err, kErrorTypeException, "Window was closed immediately");
|
||||
|
Reference in New Issue
Block a user