Skip to content

Commit 716e286

Browse files
authored
fix: Include a default border if winborder is not set. (#250)
Without setting a default border, the Yes / No / Cancel buttons and the header are not visible in the confirmation window for tool calls.
1 parent f56fe0d commit 716e286

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/mcphub/utils/ui.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ function M.confirm(message, opts)
356356

357357
-- Enhanced window options with better styling
358358
win_opts.style = "minimal"
359+
win_opts.border = vim.o.winborder ~= "" and vim.o.winborder or { "", "", "", "", "", "", "", "" }
359360
win_opts.title_pos = "center"
360361
win_opts.title = {
361362
{ " MCPHUB Confirmation ", Text.highlights.header_btn },

0 commit comments

Comments
 (0)