Skip to content

Commit

Permalink
remove selected
Browse files Browse the repository at this point in the history
  • Loading branch information
PlatinumCD committed Dec 16, 2024
1 parent 5f7287b commit 0929031
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions lua/avante/sidebar.lua
Original file line number Diff line number Diff line change
@@ -1456,27 +1456,27 @@ function Sidebar:create_selected_code_container()

local selected_code_size = self:get_selected_code_size()

if self.code.selection ~= nil then
self.selected_code_container = Split({
enter = false,
relative = {
type = "win",
winid = self.input_container.winid,
},
buf_options = buf_options,
size = {
height = selected_code_size + 3,
},
position = "top",
})
self.selected_code_container:mount()
if self:get_layout() == "horizontal" then
api.nvim_win_set_height(
self.result_container.winid,
api.nvim_win_get_height(self.result_container.winid) - selected_code_size - 3
)
end
end
-- if self.code.selection ~= nil then
-- self.selected_code_container = Split({
-- enter = false,
-- relative = {
-- type = "win",
-- winid = self.input_container.winid,
-- },
-- buf_options = buf_options,
-- size = {
-- height = selected_code_size + 3,
-- },
-- position = "top",
-- })
-- self.selected_code_container:mount()
-- if self:get_layout() == "horizontal" then
-- api.nvim_win_set_height(
-- self.result_container.winid,
-- api.nvim_win_get_height(self.result_container.winid) - selected_code_size - 3
-- )
-- end
-- end
end

local generating_text = "**Generating response ...**\n"

0 comments on commit 0929031

Please sign in to comment.