Skip to content

Commit

Permalink
unindent
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-zamora committed Feb 4, 2025
1 parent b50ddb1 commit 51b7124
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/cascadia/TerminalCore/TerminalSelection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,19 +601,16 @@ void Terminal::SelectHyperlink(const SearchDirection dir)
{
return;
}
else
{
auto selection{ _selection.write() };
wil::hide_name _selection;
selection->start = result->first;
selection->pivot = result->first;
selection->end = result->second;
_selectionIsTargetingUrl = true;
_selectionEndpoint = SelectionEndpoint::End;
}
auto selection{ _selection.write() };
wil::hide_name _selection;
selection->start = result->first;
selection->pivot = result->first;
selection->end = result->second;
_selectionIsTargetingUrl = true;
_selectionEndpoint = SelectionEndpoint::End;

// 4. Scroll to the selected area (if necessary)
_ScrollToPoint(_selection->end);
_ScrollToPoint(selection->end);
}

Terminal::UpdateSelectionParams Terminal::ConvertKeyEventToUpdateSelectionParams(const ControlKeyStates mods, const WORD vkey) const noexcept
Expand Down

0 comments on commit 51b7124

Please sign in to comment.