Skip to content

Commit fd5d334

Browse files
committed
fix: unwanted extra return
1 parent 886f541 commit fd5d334

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

lua/window-picker/hints/statusline-winbar-hint.lua

+3-9
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ end
6262
--- Shows the characters in status line
6363
--- @param windows number[] windows to draw the hints on
6464
function M:draw(windows)
65-
local hint_type = unpack(self:get_hint_type())
65+
local hint_type = self:get_hint_type()
6666

6767
local g_opts_to_cap = self.opt_cap[hint_type].g
6868
local w_opts_to_cap = self.opt_cap[hint_type].w
@@ -163,16 +163,10 @@ function M:get_hint_type()
163163
end
164164

165165
if use_winbar then
166-
return {
167-
'winbar',
168-
'WinBar',
169-
}
166+
return 'winbar'
170167
end
171168

172-
return {
173-
'statusline',
174-
'StatusLine',
175-
}
169+
return 'statusline'
176170
end
177171

178172
function M:set_plugin_hl()

0 commit comments

Comments
 (0)