Skip to content

fix: Handle winborder:get return correctly#165

Merged
saecki merged 1 commit intosaecki:mainfrom
happenslol:fix-winborder
Jul 16, 2025
Merged

fix: Handle winborder:get return correctly#165
saecki merged 1 commit intosaecki:mainfrom
happenslol:fix-winborder

Conversation

@happenslol
Copy link
Copy Markdown
Contributor

Hey, from what I can tell vim.opt_global:get always returns a table, but nvim_open_win expects either a string for a preset or a table. If a table is passed, it will always get interpreted as a list of border chars, and we'll get invalid number of border chars.

This PR works around that by checking the length of winborder:get and transforming the value accordingly.

@saecki
Copy link
Copy Markdown
Owner

saecki commented Jul 16, 2025

Thanks! Can't wait for this to be in stable :)

@saecki saecki merged commit 33ec630 into saecki:main Jul 16, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants