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

Keep cursor position attached if exiting exploration after code edits #5

Open
rlisahuang opened this issue Feb 3, 2023 · 0 comments
Labels
enhancement New feature or request LEAP Anything specifically about LEAP.

Comments

@rlisahuang
Copy link

If the cursor has been focused in the exploration panel before the user exits exploration (i.e., user exits after clicking around in the exploration panel), then the edited text would be highlighted, which is fine.

However, if the cursor has been focused inside the editor before exiting exploration (i.e., user exits after editing the code), then the cursor position would stick to its original line and column, but no longer attached to the same character (because that character might have moved!)

The workaround should be simple. Given the original cursor position (lineNumber, col), we need to refocus the selection on (lineNumber-1, col), because the code would be moved upward by one line due to the removal of one completion comment above.

@rlisahuang rlisahuang added enhancement New feature or request LEAP Anything specifically about LEAP. labels Feb 3, 2023
@rlisahuang rlisahuang mentioned this issue Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request LEAP Anything specifically about LEAP.
Projects
None yet
Development

No branches or pull requests

1 participant