mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
LibLine: Correct spelling mistake in variable name
This corrects the spelling of 'matching' from 'macthing'.
This commit is contained in:
parent
3be472176d
commit
137d716495
1 changed files with 5 additions and 5 deletions
|
@ -36,10 +36,10 @@ void KeyCallbackMachine::key_pressed(Editor& editor, Key key)
|
||||||
}
|
}
|
||||||
|
|
||||||
++m_sequence_length;
|
++m_sequence_length;
|
||||||
Vector<Vector<Key>> old_macthing_keys;
|
Vector<Vector<Key>> old_matching_keys;
|
||||||
swap(m_current_matching_keys, old_macthing_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)
|
if (okey.size() < m_sequence_length)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -49,8 +49,8 @@ void KeyCallbackMachine::key_pressed(Editor& editor, Key key)
|
||||||
|
|
||||||
if (m_current_matching_keys.is_empty()) {
|
if (m_current_matching_keys.is_empty()) {
|
||||||
// Insert any keys that were captured
|
// Insert any keys that were captured
|
||||||
if (!old_macthing_keys.is_empty()) {
|
if (!old_matching_keys.is_empty()) {
|
||||||
auto& keys = old_macthing_keys.first();
|
auto& keys = old_matching_keys.first();
|
||||||
for (size_t i = 0; i < m_sequence_length - 1; ++i)
|
for (size_t i = 0; i < m_sequence_length - 1; ++i)
|
||||||
editor.insert(keys[i].key);
|
editor.insert(keys[i].key);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue