mirror of
https://github.com/neovim/neovim.git
synced 2025-10-14 05:46:12 +00:00
fix(api): ensure win_get_config() "border" is reciprocal (#34322)
fix(api): ensure win_get_config() is reciprocal Problem: win_get_config() does not include a 'none' border field, causing nvim_open_win() to apply the 'winborder' value. Solution: Include a 'none' border field in the returned config, such that it can be used reciprocally in nvim_open_win() to yield the same window layout.
This commit is contained in:
@@ -768,6 +768,8 @@ Dict(win_config) nvim_win_get_config(Window window, Arena *arena, Error *err)
|
||||
if (config->footer) {
|
||||
config_put_bordertext(&rv, config, kBorderTextFooter, arena);
|
||||
}
|
||||
} else {
|
||||
PUT_KEY_X(rv, border, STRING_OBJ(cstr_as_string("none")));
|
||||
}
|
||||
} else if (!config->external) {
|
||||
PUT_KEY_X(rv, width, wp->w_width);
|
||||
|
Reference in New Issue
Block a user