File tree 3 files changed +5
-5
lines changed
src/cascadia/TerminalCore
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -978,7 +978,7 @@ catch (...)
978
978
// Arguments:
979
979
// - vkey: The virtual key code.
980
980
// - scanCode: The scan code.
981
- void Terminal::_StoreKeyEvent (const WORD vkey, const WORD scanCode)
981
+ void Terminal::_StoreKeyEvent (const WORD vkey, const WORD scanCode) noexcept
982
982
{
983
983
_lastKeyEventCodes.emplace (KeyEventCodes{ vkey, scanCode });
984
984
}
Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ class Microsoft::Terminal::Core::Terminal final :
283
283
void SelectHyperlink (const SearchDirection dir);
284
284
285
285
using UpdateSelectionParams = std::optional<std::pair<SelectionDirection, SelectionExpansion>>;
286
- UpdateSelectionParams ConvertKeyEventToUpdateSelectionParams (const ControlKeyStates mods, const WORD vkey) const ;
286
+ UpdateSelectionParams ConvertKeyEventToUpdateSelectionParams (const ControlKeyStates mods, const WORD vkey) const noexcept ;
287
287
til::point SelectionStartForRendering () const ;
288
288
til::point SelectionEndForRendering () const ;
289
289
const SelectionEndpoint SelectionEndpointTarget () const noexcept ;
@@ -411,7 +411,7 @@ class Microsoft::Terminal::Core::Terminal final :
411
411
static WORD _VirtualKeyFromCharacter (const wchar_t ch) noexcept ;
412
412
static wchar_t _CharacterFromKeyEvent (const WORD vkey, const WORD scanCode, const ControlKeyStates states) noexcept ;
413
413
414
- void _StoreKeyEvent (const WORD vkey, const WORD scanCode);
414
+ void _StoreKeyEvent (const WORD vkey, const WORD scanCode) noexcept ;
415
415
WORD _TakeVirtualKeyFromLastKeyEvent (const WORD scanCode) noexcept ;
416
416
417
417
int _VisibleStartIndex () const noexcept ;
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ void Terminal::SelectHyperlink(const SearchDirection dir)
417
417
};
418
418
419
419
// extracts the next/previous hyperlink from the list of hyperlink ranges provided
420
- auto extractResultFromList = [&](std::vector<interval_tree::Interval<til::point, size_t >>& list) {
420
+ auto extractResultFromList = [&](std::vector<interval_tree::Interval<til::point, size_t >>& list) noexcept {
421
421
const auto selectionStartInSearchArea = convertToSearchArea (_selection->start );
422
422
423
423
std::optional<std::pair<til::point, til::point>> resultFromList;
@@ -533,7 +533,7 @@ void Terminal::SelectHyperlink(const SearchDirection dir)
533
533
_ScrollToPoint (_selection->end );
534
534
}
535
535
536
- Terminal::UpdateSelectionParams Terminal::ConvertKeyEventToUpdateSelectionParams (const ControlKeyStates mods, const WORD vkey) const
536
+ Terminal::UpdateSelectionParams Terminal::ConvertKeyEventToUpdateSelectionParams (const ControlKeyStates mods, const WORD vkey) const noexcept
537
537
{
538
538
if ((_selectionMode == SelectionInteractionMode::Mark || mods.IsShiftPressed ()) && !mods.IsAltPressed ())
539
539
{
You can’t perform that action at this time.
0 commit comments