Skip to content

Commit

Permalink
fix: make O1 work with new change
Browse files Browse the repository at this point in the history
  • Loading branch information
LessComplexity committed Nov 6, 2024
1 parent c7ff2a9 commit 0534ff5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lua/avante/sidebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1354,10 +1354,11 @@ function Sidebar:create_input(opts)
if is_first_chunk then
is_first_chunk = false
self:update_content(content_prefix .. cur_displayed_response, { stream = false, scroll = true })
return
else
local suffix = get_display_content_suffix(transformed)
self:update_content(content_prefix .. cur_displayed_response .. suffix, { scroll = true })
end
local suffix = get_display_content_suffix(transformed)
self:update_content(content_prefix .. cur_displayed_response .. suffix, { scroll = true })

vim.schedule(function() vim.cmd("redraw") end)
displayed_response = cur_displayed_response
end
Expand Down

0 comments on commit 0534ff5

Please sign in to comment.