summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/VimEditingEngine.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-04-01 20:58:27 +0300
committerLinus Groh <mail@linusgroh.de>2022-04-01 21:24:45 +0100
commit086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch)
tree02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Libraries/LibGUI/VimEditingEngine.cpp
parent0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff)
downloadserenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Libraries/LibGUI/VimEditingEngine.cpp')
-rw-r--r--Userland/Libraries/LibGUI/VimEditingEngine.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibGUI/VimEditingEngine.cpp b/Userland/Libraries/LibGUI/VimEditingEngine.cpp
index d69c3ed326..a12887a036 100644
--- a/Userland/Libraries/LibGUI/VimEditingEngine.cpp
+++ b/Userland/Libraries/LibGUI/VimEditingEngine.cpp
@@ -773,7 +773,7 @@ CursorWidth VimEditingEngine::cursor_width() const
return m_vim_mode == VimMode::Insert ? CursorWidth::NARROW : CursorWidth::WIDE;
}
-bool VimEditingEngine::on_key(const KeyEvent& event)
+bool VimEditingEngine::on_key(KeyEvent const& event)
{
switch (m_vim_mode) {
case (VimMode::Insert):
@@ -789,7 +789,7 @@ bool VimEditingEngine::on_key(const KeyEvent& event)
return false;
}
-bool VimEditingEngine::on_key_in_insert_mode(const KeyEvent& event)
+bool VimEditingEngine::on_key_in_insert_mode(KeyEvent const& event)
{
if (EditingEngine::on_key(event))
return true;
@@ -819,7 +819,7 @@ bool VimEditingEngine::on_key_in_insert_mode(const KeyEvent& event)
return false;
}
-bool VimEditingEngine::on_key_in_normal_mode(const KeyEvent& event)
+bool VimEditingEngine::on_key_in_normal_mode(KeyEvent const& event)
{
// Ignore auxiliary keypress events.
if (event.key() == KeyCode::Key_LeftShift
@@ -1102,7 +1102,7 @@ bool VimEditingEngine::on_key_in_normal_mode(const KeyEvent& event)
return true;
}
-bool VimEditingEngine::on_key_in_visual_mode(const KeyEvent& event)
+bool VimEditingEngine::on_key_in_visual_mode(KeyEvent const& event)
{
// If the motion state machine requires the next character, feed it.
if (m_motion.should_consume_next_character()) {