fix: resp separator (#1320)
This commit is contained in:
@@ -1895,7 +1895,7 @@ function Sidebar:render_history_content(history)
|
|||||||
for idx, entry in ipairs(history) do
|
for idx, entry in ipairs(history) do
|
||||||
if entry.reset_memory then
|
if entry.reset_memory then
|
||||||
content = content .. "***MEMORY RESET***\n\n"
|
content = content .. "***MEMORY RESET***\n\n"
|
||||||
if idx < #history then content = content .. "---\n\n" end
|
if idx < #history then content = content .. "------\n\n" end
|
||||||
goto continue
|
goto continue
|
||||||
end
|
end
|
||||||
local selected_filepaths = entry.selected_filepaths
|
local selected_filepaths = entry.selected_filepaths
|
||||||
@@ -1912,7 +1912,7 @@ function Sidebar:render_history_content(history)
|
|||||||
)
|
)
|
||||||
content = content .. prefix
|
content = content .. prefix
|
||||||
content = content .. entry.response .. "\n\n"
|
content = content .. entry.response .. "\n\n"
|
||||||
if idx < #history then content = content .. "---\n\n" end
|
if idx < #history then content = content .. "------\n\n" end
|
||||||
::continue::
|
::continue::
|
||||||
end
|
end
|
||||||
return content
|
return content
|
||||||
@@ -1925,7 +1925,7 @@ end
|
|||||||
|
|
||||||
---@return string, integer
|
---@return string, integer
|
||||||
function Sidebar:get_content_between_separators()
|
function Sidebar:get_content_between_separators()
|
||||||
local separator = "---"
|
local separator = "------"
|
||||||
local cursor_line, _ = Utils.get_cursor_pos()
|
local cursor_line, _ = Utils.get_cursor_pos()
|
||||||
local lines = Utils.get_buf_lines(0, -1, self.result_container.bufnr)
|
local lines = Utils.get_buf_lines(0, -1, self.result_container.bufnr)
|
||||||
local start_line, end_line
|
local start_line, end_line
|
||||||
|
|||||||
Reference in New Issue
Block a user