We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d8b1be commit 33ec630Copy full SHA for 33ec630
lua/crates/popup/common.lua
@@ -175,7 +175,12 @@ local function popup_border()
175
if state.cfg.popup.border ~= nil then
176
return state.cfg.popup.border
177
elseif vim.version.ge(vim.version(), {0, 11, 0}) then
178
- return vim.opt_global.winborder:get()
+ ---@type string[]
179
+ local winborder = vim.opt_global.winborder:get()
180
+
181
+ -- This returns { "<value>" } if something like "single" or "rounded"
182
+ -- is set, or a list of border chars.
183
+ return #winborder == 1 and winborder[1] or winborder
184
else
185
return "none"
186
end
0 commit comments