From 5966529997eb17767eb9ea181583714c168782cd Mon Sep 17 00:00:00 2001 From: yetone Date: Thu, 20 Feb 2025 16:14:25 +0800 Subject: [PATCH] fix: resp separator (#1320) --- lua/avante/sidebar.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/avante/sidebar.lua b/lua/avante/sidebar.lua index 47e3cda..65e49ad 100644 --- a/lua/avante/sidebar.lua +++ b/lua/avante/sidebar.lua @@ -1895,7 +1895,7 @@ function Sidebar:render_history_content(history) for idx, entry in ipairs(history) do if entry.reset_memory then 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 end local selected_filepaths = entry.selected_filepaths @@ -1912,7 +1912,7 @@ function Sidebar:render_history_content(history) ) content = content .. prefix 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:: end return content @@ -1925,7 +1925,7 @@ end ---@return string, integer function Sidebar:get_content_between_separators() - local separator = "---" + local separator = "------" local cursor_line, _ = Utils.get_cursor_pos() local lines = Utils.get_buf_lines(0, -1, self.result_container.bufnr) local start_line, end_line