Skip to content

Commit 7d00b25

Browse files
spelling
1 parent ba375ec commit 7d00b25

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cascadia/TerminalApp/CommandPalette.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ namespace winrt::TerminalApp::implementation
11841184
for (const auto& nameAndCommand : parentCommand.NestedCommands())
11851185
{
11861186
const auto action = nameAndCommand.Value();
1187-
// nested commands cannot have keybinds bound to them, so just pass in the command and no keys
1187+
// nested commands cannot have keys bound to them, so just pass in the command and no keys
11881188
auto nestedActionPaletteItem{ winrt::make<winrt::TerminalApp::implementation::ActionPaletteItem>(action, L"") };
11891189
auto nestedFilteredCommand{ winrt::make<FilteredCommand>(nestedActionPaletteItem) };
11901190
_currentNestedCommands.Append(nestedFilteredCommand);

src/cascadia/TerminalSettingsModel/ActionMap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,8 +680,8 @@ namespace winrt::Microsoft::Terminal::Settings::Model::implementation
680680
_RefreshKeyBindingCaches();
681681
}
682682

683-
// I dislike that we have to do an O(n) lookup everytime we want to get the keybinding for an action -
684-
// an alternative is having the key->action map be a bimap (would require a dependency), or store another map that is just
683+
// I dislike that we have to do an O(n) lookup every time we want to get the keybinding for an action -
684+
// an alternative is having the key->action map be a bi-map (would require a dependency), or store another map that is just
685685
// the reverse direction (action->key) which would be mean storing the same data twice but getting faster lookup
686686
for (const auto [key, action] : _ResolvedKeyActionMapCache)
687687
{

0 commit comments

Comments
 (0)