Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: find jumps to wrong location. #2060

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

paxcut
Copy link
Contributor

@paxcut paxcut commented Jan 7, 2025

After successfully finding matches and setting the cursor to them, the screen would jump to the original window location upon closing the window.

The error was caused by the wrong assumption that the scroll location should be restored when window is closed. Instead, the right amount of scrolling needs to be calculated to account for the window no longer covering part of the text editor. Unused variable was discarded.

Another unrelated error is that the history of search names cannot be accessed which will be addressed at a later PR.

paxcut and others added 2 commits January 7, 2025 10:08
After successfully finding matches and setting the cursor to them, the screen would jump to the original window location upon closing the window.

The error was caused by the wrong assumption that the scroll location should be restored when window is closed. Instead, the right ammount of scrolling needs to be calculated to account for the window no longer covering part of the text editor. Unused variable was discarded.

Another unrelated error is that the history of search names cannot be accessed which will be addressed at a later PR.
@WerWolv WerWolv merged commit f10af88 into WerWolv:master Jan 9, 2025
17 of 18 checks passed
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