mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #557] [MERGED] fix(core): prevent cursor to get stuck at virtual extmark #618
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#618
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/557
Author: @felixzsh
Created: 1/20/2026
Status: ✅ Merged
Merged: 1/26/2026
Merged by: @kommander
Base:
main← Head:fix/cursor-stuck-extmark-at-start-line📝 Commits (5)
24ee6a3fix(core): prevent cursor to get stuck at virtual extmarke5bf452Merge remote-tracking branch 'origin/main' into fix/cursor-stuck-extmark-at-start-linecd85aa5fix(extmarks): land on extmark end to avoid overshoot80d0bf3Merge branch 'main' into fix/cursor-stuck-extmark-at-start-line615b674Merge branch 'main' into fix/cursor-stuck-extmark-at-start-line📊 Changes
2 files changed (+111 additions, -1 deletions)
View changed files
📝
packages/core/src/lib/extmarks.test.ts(+107 -0)📝
packages/core/src/lib/extmarks.ts(+4 -1)📄 Description
Fix cursor getting stuck when moving down over virtual extmarks at the beginning of lines.When moving vertically over a virtual extmark at the start of a line, the cursor would be forced backwards instead of allowing forward movement. This fix detects when the adjusted position would cause backward movement during down navigation and positions the cursor at the end of the extmark with proper spacing.
the decision on the reposition at the end + 2, was made to be consistent with the current behavior when moving up over virtual extmarks (skiping the line)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.