We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20bfef4 commit 6091df0Copy full SHA for 6091df0
lua/claudecode/selection.lua
@@ -128,8 +128,8 @@ function M.update_selection()
128
local current_buf = vim.api.nvim_get_current_buf()
129
local buf_name = vim.api.nvim_buf_get_name(current_buf)
130
131
- -- If the buffer name starts with "✻ [Claude Code]", do not update selection
132
- 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
133
-- Optionally, cancel demotion timer like for the terminal
134
if M.state.demotion_timer then
135
M.state.demotion_timer:stop()
0 commit comments