Skip to content

fix(input): prevent cursor jumps on context completion trigger#274

Merged
sudo-tee merged 1 commit intosudo-tee:mainfrom
disrupted:fix/input-cursor-jump
Feb 14, 2026
Merged

fix(input): prevent cursor jumps on context completion trigger#274
sudo-tee merged 1 commit intosudo-tee:mainfrom
disrupted:fix/input-cursor-jump

Conversation

@disrupted
Copy link
Contributor

when inserting the context completion trigger (#) the cursor could jump to another location because it tried restoring a formerly saved cursor position. this is likely a regression of 22ee4f0

I also added a safeguard so that we never attempt to restore a saved cursor location when the input window is already focused

Avoid restoring saved input cursor position when triggering # context completion
@disrupted disrupted marked this pull request as ready for review February 13, 2026 23:38
@sudo-tee
Copy link
Owner

Another great fix.

Thanks

@sudo-tee sudo-tee merged commit 30dec32 into sudo-tee:main Feb 14, 2026
5 checks passed
@disrupted disrupted deleted the fix/input-cursor-jump branch February 14, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants