You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Stage over 200 lines of changes in a file, in a way that no hunks are shown (not sure whether hunks affect this).
Right click a line around line 200, and select Edit Staged Contents....
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.
Version info
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:
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
The text was updated successfully, but these errors were encountered: