Skip to content

revert: Partially revert changes from #318 in link navigation#320

Merged
cary-rowen merged 1 commit into
blindpandas:developfrom
cary-rowen:follow-up#318
Apr 8, 2025
Merged

revert: Partially revert changes from #318 in link navigation#320
cary-rowen merged 1 commit into
blindpandas:developfrom
cary-rowen:follow-up#318

Conversation

@cary-rowen

Copy link
Copy Markdown
Collaborator

Link to issue number:

Follow-up to #318

Summary of the issue:

An unintended change in #318 caused some issues: for example, the content of the line where the cursor was located was not reported after following a jump link.

Description of how this pull request fixes the issue:

Revert the use of end=end in perform_wormhole_navigation call within navigate_to_link_by_range, restoring end=None.
This fixes a start > end error encountered after navigating internal links. The error was caused by the combination of the start += 1 adjustment (introduced in #318 to fix cursor positioning) and passing an explicit end value derived from target_info.position.
Restoring end=None resolves the range error by instructing the view to only set the cursor position (start) without selecting a potentially invalid range, while still respecting the necessary cursor adjustment from #318.

Testing performed:

Manual testing

Known issues with pull request:

unknown

@cary-rowen
cary-rowen merged commit 10d04f6 into blindpandas:develop Apr 8, 2025
@cary-rowen
cary-rowen deleted the follow-up#318 branch April 8, 2025 23:11
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