Skip to content

Commit 7bc1457

Browse files
committed
nits and such
1 parent e9e04d4 commit 7bc1457

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/cascadia/TerminalApp/AppActionHandlers.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1426,14 +1426,14 @@ namespace winrt::TerminalApp::implementation
14261426
{
14271427
if (Feature_ScratchpadPane::IsEnabled())
14281428
{
1429-
auto scratchPane{ winrt::make_self<ScratchpadContent>() };
1429+
const auto& scratchPane{ winrt::make_self<ScratchpadContent>() };
14301430

14311431
// This is maybe a little wacky - add our key event handler to the pane
14321432
// we made. So that we can get actions for keys that the content didn't
14331433
// handle.
14341434
scratchPane->GetRoot().KeyDown({ this, &TerminalPage::_KeyDownHandler });
14351435

1436-
auto resultPane = std::make_shared<Pane>(*scratchPane);
1436+
const auto resultPane = std::make_shared<Pane>(*scratchPane);
14371437
_SplitPane(_GetFocusedTabImpl(), SplitDirection::Automatic, 0.5f, resultPane);
14381438
args.Handled(true);
14391439
}

src/cascadia/TerminalApp/ScratchpadContent.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ namespace winrt::TerminalApp::implementation
1515
ScratchpadContent::ScratchpadContent()
1616
{
1717
_root = winrt::Windows::UI::Xaml::Controls::Grid{};
18-
_root.VerticalAlignment(VerticalAlignment::Stretch);
19-
_root.HorizontalAlignment(HorizontalAlignment::Stretch);
18+
// Vertical and HorizontalAlignment are Stretch by default
2019

2120
auto res = Windows::UI::Xaml::Application::Current().Resources();
2221
auto bg = res.Lookup(winrt::box_value(L"UnfocusedBorderBrush"));

src/features.xml

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@
194194
<stage>AlwaysDisabled</stage>
195195
<alwaysEnabledBrandingTokens>
196196
<brandingToken>Dev</brandingToken>
197+
<brandingToken>Canary</brandingToken>
197198
</alwaysEnabledBrandingTokens>
198199
</feature>
199200

0 commit comments

Comments
 (0)