Skip to content

Commit

Permalink
fix(cmdline): reset title when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jun 13, 2024
1 parent 6c30af2 commit edd14df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lua/noice/ui/cmdline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ end
function Cmdline:format(message, text_only)
local format = self:get_format()
message.fix_cr = false
message.title = nil

if format.icon then
message:append(NoiceText.virtual_text(format.icon, format.icon_hl_group))
Expand Down
2 changes: 1 addition & 1 deletion lua/noice/view/nui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function NuiView:reset(old, new)
if self._nui then
local layout = false
local diff = vim.tbl_filter(function(key)
if vim.tbl_contains({ "relative", "size", "position", "border" }, key) then
if vim.tbl_contains({ "relative", "size", "position" }, key) then
layout = true
return false
end
Expand Down

0 comments on commit edd14df

Please sign in to comment.