mirror of
https://github.com/neovim/neovim.git
synced 2026-04-20 22:35:33 +00:00
fix(api): fix 'winborder' preventing splits with nvim_open_win (#32981)
While at it, rename the p_winbd variable to p_winborder, as 'winbd' is not the option's short name. Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
@@ -1825,6 +1825,14 @@ describe('API/win', function()
|
||||
)
|
||||
end)
|
||||
|
||||
it("can create split window when 'winborder' is set", function()
|
||||
local old_win = api.nvim_get_current_win()
|
||||
api.nvim_set_option_value('winborder', 'single', {})
|
||||
local new_win = api.nvim_open_win(0, false, { split = 'right', win = 0 })
|
||||
eq({ 'row', { { 'leaf', old_win }, { 'leaf', new_win } } }, fn.winlayout())
|
||||
eq('', api.nvim_win_get_config(new_win).relative)
|
||||
end)
|
||||
|
||||
describe("with 'autochdir'", function()
|
||||
local topdir
|
||||
local otherbuf
|
||||
|
||||
Reference in New Issue
Block a user