summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/VimEditingEngine.h
diff options
context:
space:
mode:
authorhuttongrabiel <huttonthomas@icloud.com>2022-05-18 22:34:23 -0700
committerLinus Groh <mail@linusgroh.de>2022-05-26 21:51:23 +0100
commit2cfbb9a0e812b0e96c7b7cd93a82c42d005e9f94 (patch)
tree6edd80b9770be293ad1e5fe75cac17fa550bd92e /Userland/Libraries/LibGUI/VimEditingEngine.h
parent8ffa860bc3cb45673c3cb7fb617259df60c987da (diff)
downloadserenity-2cfbb9a0e812b0e96c7b7cd93a82c42d005e9f94.zip
LibGUI: Implement case inversion in Vim emulation
When in visual mode with text selected, on Key_Tilde press, uppercase characters convert to lowercase and lowercase ones to uppercase.
Diffstat (limited to 'Userland/Libraries/LibGUI/VimEditingEngine.h')
-rw-r--r--Userland/Libraries/LibGUI/VimEditingEngine.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/VimEditingEngine.h b/Userland/Libraries/LibGUI/VimEditingEngine.h
index d9e956524a..f3b372890f 100644
--- a/Userland/Libraries/LibGUI/VimEditingEngine.h
+++ b/Userland/Libraries/LibGUI/VimEditingEngine.h
@@ -162,7 +162,8 @@ private:
enum class Casing {
Uppercase,
- Lowercase
+ Lowercase,
+ Invertcase
};
VimMode m_vim_mode { VimMode::Normal };