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

Edit Staged Contents view is in incorrect position #1999

Open
Devenec opened this issue Jan 9, 2025 · 1 comment
Open

Edit Staged Contents view is in incorrect position #1999

Devenec opened this issue Jan 9, 2025 · 1 comment

Comments

@Devenec
Copy link

Devenec commented Jan 9, 2025

Version info

  • OS: Windows 10 build 19045.5011
  • Build: 2101

Description

When right-clicking a line in the staged changes of a file and selecting Edit Staged Contents..., the opening Edit Staged Contents view isn't always positioned at the line that was right-clicked. The caret is correctly positioned at the line and column that was right-clicked.

Steps to reproduce

Steps to reproduce the behavior:

  1. Stage over 200 lines of changes in a file, in a way that no hunks are shown (not sure whether hunks affect this).
  2. Right click a line around line 200, and select Edit Staged Contents....
  3. Observe that the right-clicked line is not in visible in the opened Edit Staged Contents view. The last visible line on the right side is around line 160.
    • Note, by scrolling to the right-clicked line, that the caret is at the correct position.

Expected behavior

The right-clicked line should be visible in the Edit Staged Contents view.

Notes

As a workaround, after opening the Edit Staged Contents view, I tried to move the caret to the left or right with the arrow keys, so that the right-clicked line would appear in the view (like in Sublime Text), but the view scrolled only a little towards the right-clicked line. It required a few moves of the caret to get there.

Debug Information

debug_info.txt

@dpjohnst
Copy link
Member

Hi @Devenec,

Thanks for reporting this issue - I've been able to reproduce it and I am working on a fix.

Cheers,
- Dylan from Sublime HQ

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

No branches or pull requests

2 participants