[BUG] Cursor incorrectly positioned when pasting multi-line code
Resolved 💬 5 comments Opened Aug 1, 2025 by WarrenZhu050413 Closed Jan 3, 2026
[BUG] Cursor incorrectly positioned when pasting multi-line code
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.64 (Claude Code)
- Operating System: macOS 14.3 (Darwin 24.3.0)
- Terminal: <!-- e.g. iTerm2, Terminal App -->
Bug Description
When I paste a function, my cursor ends up in the middle of that function, e.g. "package experimental
func RunScript(a At, script string, filename string, su bool) P {
run := urpc(a, ./+filename)
if su {
run = urpc(a, sudo , ./+filename)
}
return seq(
TouchExe(a, filename, []byte(script)),
run,
)
}". This lands my cursor between by and te in the []byte(script) part of the paste
Steps to Reproduce
Expected Behavior
Actual Behavior
Additional Context
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗