Skip to content

Commit 89e8a49

Browse files
committed
fix(base_picker): use actual time for time width
1 parent 8057620 commit 89e8a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/opencode/ui/base_picker.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ end
360360
---@param width? number Optional width override
361361
---@return PickerItem
362362
function M.create_picker_item(text, time, debug_text, width)
363-
local time_width = time and #util.format_time(0) + 1 or 0 -- longest time format by using 0
363+
local time_width = time and #util.format_time(time) + 1 or 0
364364
local debug_width = config.debug.show_ids and debug_text and #debug_text + 1 or 0
365365
local item_width = width or vim.api.nvim_win_get_width(0)
366366
local text_width = item_width - (debug_width + time_width)

0 commit comments

Comments
 (0)