@@ -2111,7 +2111,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
2111
2111
2112
2112
void ControlCore::AddMark (const Control::ScrollMark& mark)
2113
2113
{
2114
- ::Microsoft::Console::VirtualTerminal::DispatchTypes:: ScrollMark m{};
2114
+ ::ScrollMark m{};
2115
2115
2116
2116
if (mark.Color .HasValue )
2117
2117
{
@@ -2140,7 +2140,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
2140
2140
const auto currentOffset = ScrollOffset ();
2141
2141
const auto & marks{ _terminal->GetScrollMarks () };
2142
2142
2143
- std::optional<DispatchTypes ::ScrollMark> tgt;
2143
+ std::optional<::ScrollMark> tgt;
2144
2144
2145
2145
switch (direction)
2146
2146
{
@@ -2243,7 +2243,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
2243
2243
const til::point start = HasSelection () ? (goUp ? _terminal->GetSelectionAnchor () : _terminal->GetSelectionEnd ()) :
2244
2244
_terminal->GetTextBuffer ().GetCursor ().GetPosition ();
2245
2245
2246
- std::optional<DispatchTypes ::ScrollMark> nearest{ std::nullopt };
2246
+ std::optional<::ScrollMark> nearest{ std::nullopt };
2247
2247
const auto & marks{ _terminal->GetScrollMarks () };
2248
2248
2249
2249
// Early return so we don't have to check for the validity of `nearest` below after the loop exits.
@@ -2283,7 +2283,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
2283
2283
const til::point start = HasSelection () ? (goUp ? _terminal->GetSelectionAnchor () : _terminal->GetSelectionEnd ()) :
2284
2284
_terminal->GetTextBuffer ().GetCursor ().GetPosition ();
2285
2285
2286
- std::optional<DispatchTypes ::ScrollMark> nearest{ std::nullopt };
2286
+ std::optional<::ScrollMark> nearest{ std::nullopt };
2287
2287
const auto & marks{ _terminal->GetScrollMarks () };
2288
2288
2289
2289
static constexpr til::point worst{ til::CoordTypeMax, til::CoordTypeMax };
@@ -2357,8 +2357,8 @@ namespace winrt::Microsoft::Terminal::Control::implementation
2357
2357
2358
2358
void ControlCore::_contextMenuSelectMark (
2359
2359
const til::point& pos,
2360
- bool (*filter)(const DispatchTypes ::ScrollMark&),
2361
- til::point_span (*getSpan)(const DispatchTypes ::ScrollMark&))
2360
+ bool (*filter)(const ::ScrollMark&),
2361
+ til::point_span (*getSpan)(const ::ScrollMark&))
2362
2362
{
2363
2363
// Do nothing if the caller didn't give us a way to get the span to select for this mark.
2364
2364
if (!getSpan)
@@ -2391,20 +2391,20 @@ namespace winrt::Microsoft::Terminal::Control::implementation
2391
2391
{
2392
2392
_contextMenuSelectMark (
2393
2393
_contextMenuBufferPosition,
2394
- [](const DispatchTypes ::ScrollMark& m) -> bool { return !m.HasCommand (); },
2395
- [](const DispatchTypes ::ScrollMark& m) { return til::point_span{ m.end , *m.commandEnd }; });
2394
+ [](const ::ScrollMark& m) -> bool { return !m.HasCommand (); },
2395
+ [](const ::ScrollMark& m) { return til::point_span{ m.end , *m.commandEnd }; });
2396
2396
}
2397
2397
void ControlCore::ContextMenuSelectOutput ()
2398
2398
{
2399
2399
_contextMenuSelectMark (
2400
2400
_contextMenuBufferPosition,
2401
- [](const DispatchTypes ::ScrollMark& m) -> bool { return !m.HasOutput (); },
2402
- [](const DispatchTypes ::ScrollMark& m) { return til::point_span{ *m.commandEnd , *m.outputEnd }; });
2401
+ [](const ::ScrollMark& m) -> bool { return !m.HasOutput (); },
2402
+ [](const ::ScrollMark& m) { return til::point_span{ *m.commandEnd , *m.outputEnd }; });
2403
2403
}
2404
2404
2405
2405
bool ControlCore::_clickedOnMark (
2406
2406
const til::point& pos,
2407
- bool (*filter)(const DispatchTypes ::ScrollMark&))
2407
+ bool (*filter)(const ::ScrollMark&))
2408
2408
{
2409
2409
// Don't show this if the click was on the selection
2410
2410
if (_terminal->IsSelectionActive () &&
@@ -2442,7 +2442,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
2442
2442
{
2443
2443
// Relies on the anchor set in AnchorContextMenu
2444
2444
return _clickedOnMark (_contextMenuBufferPosition,
2445
- [](const DispatchTypes ::ScrollMark& m) -> bool { return !m.HasCommand (); });
2445
+ [](const ::ScrollMark& m) -> bool { return !m.HasCommand (); });
2446
2446
}
2447
2447
2448
2448
// Method Description:
@@ -2451,6 +2451,6 @@ namespace winrt::Microsoft::Terminal::Control::implementation
2451
2451
{
2452
2452
// Relies on the anchor set in AnchorContextMenu
2453
2453
return _clickedOnMark (_contextMenuBufferPosition,
2454
- [](const DispatchTypes ::ScrollMark& m) -> bool { return !m.HasOutput (); });
2454
+ [](const ::ScrollMark& m) -> bool { return !m.HasOutput (); });
2455
2455
}
2456
2456
}
0 commit comments