Skip to content
Merged
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
4 changes: 2 additions & 2 deletions lua/claudecode/selection.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ function M.update_selection()
local current_buf = vim.api.nvim_get_current_buf()
local buf_name = vim.api.nvim_buf_get_name(current_buf)

-- If the buffer name starts with "✻ [Claude Code]", do not update selection
if buf_name and string.sub(buf_name, 1, string.len("✻ [Claude Code]")) == "✻ [Claude Code]" then
-- If the buffer name starts with "term://" and contains "claude", do not update selection
if buf_name and buf_name:match("^term://") and buf_name:lower():find("claude", 1, true) then
-- Optionally, cancel demotion timer like for the terminal
if M.state.demotion_timer then
M.state.demotion_timer:stop()
Expand Down