Skip to content

Commit

Permalink
Scroll to top when select all action is invoked (#13656)
Browse files Browse the repository at this point in the history
## Summary of the Pull Request
In general, when a selection marker is shown, we should scroll to it. The `selectAll` action adds a selection marker, but we don't scroll to it. This PR makes it such that we do do that.

Epic: #4993 
Closes #13485
  • Loading branch information
carlos-zamora authored Aug 2, 2022
1 parent 61d84a7 commit a9c3b77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cascadia/TerminalCore/TerminalSelection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ void Terminal::SelectAll()
_selection->end = { bufferSize.RightInclusive(), _GetMutableViewport().BottomInclusive() };
_selection->pivot = _selection->end;
_selectionMode = SelectionInteractionMode::Keyboard;
_ScrollToPoint(_selection->start);
}

void Terminal::_MoveByChar(SelectionDirection direction, til::point& pos)
Expand Down

0 comments on commit a9c3b77

Please sign in to comment.