From 137d71649509ff34d0d3e510eb70aafe9858a9a0 Mon Sep 17 00:00:00 2001 From: Jamie Mansfield Date: Wed, 21 Jul 2021 12:42:54 +0100 Subject: [PATCH] LibLine: Correct spelling mistake in variable name This corrects the spelling of 'matching' from 'macthing'. --- Userland/Libraries/LibLine/KeyCallbackMachine.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Userland/Libraries/LibLine/KeyCallbackMachine.cpp b/Userland/Libraries/LibLine/KeyCallbackMachine.cpp index 9e6020a0150..3cc4ed3c061 100644 --- a/Userland/Libraries/LibLine/KeyCallbackMachine.cpp +++ b/Userland/Libraries/LibLine/KeyCallbackMachine.cpp @@ -36,10 +36,10 @@ void KeyCallbackMachine::key_pressed(Editor& editor, Key key) } ++m_sequence_length; - Vector> old_macthing_keys; - swap(m_current_matching_keys, old_macthing_keys); + Vector> old_matching_keys; + swap(m_current_matching_keys, old_matching_keys); - for (auto& okey : old_macthing_keys) { + for (auto& okey : old_matching_keys) { if (okey.size() < m_sequence_length) continue; @@ -49,8 +49,8 @@ void KeyCallbackMachine::key_pressed(Editor& editor, Key key) if (m_current_matching_keys.is_empty()) { // Insert any keys that were captured - if (!old_macthing_keys.is_empty()) { - auto& keys = old_macthing_keys.first(); + if (!old_matching_keys.is_empty()) { + auto& keys = old_matching_keys.first(); for (size_t i = 0; i < m_sequence_length - 1; ++i) editor.insert(keys[i].key); }