Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions lua/CopilotChat/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -970,8 +970,6 @@ function M.ask(prompt, config)
content = '\n' .. tool.result .. '\n',
})
end

M.chat:follow()
end

local ask_ok, ask_response = pcall(client.ask, client, prompt, {
Expand Down
2 changes: 1 addition & 1 deletion lua/CopilotChat/ui/chat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ function Chat:append(str)
local current_pos = vim.api.nvim_win_get_cursor(self.winnr)
local line_count = vim.api.nvim_buf_line_count(self.bufnr)
-- Follow only if the cursor is currently at the last line.
should_follow_cursor = current_pos[1] == line_count
should_follow_cursor = current_pos[1] >= line_count - 1
end

local last_line, last_column, _ = self:last()
Expand Down
Loading