-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove spaces from snippets in the SXNUI #17261
Conversation
This comment has been minimized.
This comment has been minimized.
@@ -964,17 +965,32 @@ namespace winrt::Microsoft::Terminal::Settings::Model::implementation | |||
cmdImpl.copy_from(winrt::get_self<implementation::Command>(command)); | |||
|
|||
const auto inArgs{ command.ActionAndArgs().Args().try_as<Model::SendInputArgs>() }; | |||
|
|||
const auto inputString{ (std::wstring_view)(inArgs ? inArgs.Input() : L"") }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically you need to assign the Input()
to somewhere before getting a weak string-view to it. It's not guaranteed that the implementation of the property holds onto a reference of the HSTRING
after all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm gonna block over this, since it could be an easy safety issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as noted
Couple different issues:
Before in blue:
closes #16577
closes #16578