Skip to content

fix: read cursor position from editor widget instead of lineTracker#10

Merged
oribarilan merged 1 commit into
mainfrom
fix/replace-line-tracker
May 30, 2026
Merged

fix: read cursor position from editor widget instead of lineTracker#10
oribarilan merged 1 commit into
mainfrom
fix/replace-line-tracker

Conversation

@oribarilan

Copy link
Copy Markdown
Owner

yy yanked the wrong line after clicks, arrow keys, or word motions because lineTracker only updated on j/k/G/g/o. Now reads visualCursor.logicalRow directly.

lineTracker drifted on clicks, arrow keys, and word motions, causing
yy to yank the wrong line. Replaced with visualCursor.logicalRow read
through PromptAccess.getCursorLine().
@oribarilan oribarilan merged commit f67b804 into main May 30, 2026
1 check passed
@oribarilan oribarilan deleted the fix/replace-line-tracker branch May 30, 2026 20:46
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.

1 participant