mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
fix(api): error properly with invalid field in nvim_open_win (#30078)
This commit is contained in:
@@ -1038,7 +1038,7 @@ static void parse_border_style(Object style, WinConfig *fconfig, Error *err)
|
||||
|
||||
static void generate_api_error(win_T *wp, const char *attribute, Error *err)
|
||||
{
|
||||
if (wp->w_floating) {
|
||||
if (wp != NULL && wp->w_floating) {
|
||||
api_set_error(err, kErrorTypeValidation,
|
||||
"Missing 'relative' field when reconfiguring floating window %d",
|
||||
wp->handle);
|
||||
|
Reference in New Issue
Block a user