Skip to content

Commit

Permalink
fix(nui): remove border text when style is nil, "none", or `"shad…
Browse files Browse the repository at this point in the history
…ow"`
  • Loading branch information
folke committed Dec 16, 2022
1 parent a5de1ca commit d85a4d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/util/nui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function M.normalize_popup_options(opts)
end

-- fix border text
if opts.border and opts.border.style == "none" then
if opts.border and (not opts.border.style or opts.border.style == "none" or opts.border.style == "shadow") then
opts.border.text = nil
end
return opts
Expand Down

0 comments on commit d85a4d0

Please sign in to comment.