Skip to content

Commit 50de5b3

Browse files
committed
refactor(formatter): format_message_header_single
1 parent bc0eac6 commit 50de5b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/opencode/ui/formatter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ end
787787
---@param message OpencodeMessage
788788
---@param msg_idx number
789789
---@return Output
790-
function M.format_message_header_isolated(message, msg_idx)
790+
function M.format_message_header_single(message, msg_idx)
791791
local temp_output = Output.new()
792792

793793
if not state.current_model and message.info.providerID and message.info.providerID ~= '' then

lua/opencode/ui/renderer.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ end
243243
---@return {line_start: integer, line_end: integer}? Range where header was written
244244
function M._write_message_header(message, msg_idx)
245245
state.current_message = message
246-
local header_data = formatter.format_message_header_isolated(message, msg_idx)
246+
local header_data = formatter.format_message_header_single(message, msg_idx)
247247
local line_range = M._write_formatted_data(header_data)
248248
return line_range
249249
end

0 commit comments

Comments
 (0)