Skip to content

Commit 24c09cc

Browse files
authored
fix: read conceal setting after sort (#558)
1 parent 791c7ad commit 24c09cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/noice/ui/cmdline.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function Cmdline:get_format()
8686
-- if match and cmdline pos is visible
8787
if from and self.state.pos >= to - 1 then
8888
ret[#ret + 1] = {
89-
offset = format.conceal and to or 0,
89+
offset = to or 0,
9090
format = format,
9191
}
9292
end
@@ -97,7 +97,7 @@ function Cmdline:get_format()
9797
end)
9898
local format = ret[1]
9999
if format then
100-
self.offset = format.offset
100+
self.offset = format.format.conceal and format.offset or 0
101101
return format.format
102102
end
103103
self.offset = 0

0 commit comments

Comments
 (0)