Skip to content

Commit

Permalink
fix: read conceal setting after sort (#558)
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaSolOs authored Aug 29, 2023
1 parent 791c7ad commit 24c09cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/noice/ui/cmdline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function Cmdline:get_format()
-- if match and cmdline pos is visible
if from and self.state.pos >= to - 1 then
ret[#ret + 1] = {
offset = format.conceal and to or 0,
offset = to or 0,
format = format,
}
end
Expand All @@ -97,7 +97,7 @@ function Cmdline:get_format()
end)
local format = ret[1]
if format then
self.offset = format.offset
self.offset = format.format.conceal and format.offset or 0
return format.format
end
self.offset = 0
Expand Down

0 comments on commit 24c09cc

Please sign in to comment.