1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

VimEditingEngine: Allow repeats for dd, yy and x

This commit is contained in:
Matthew Hall 2021-07-11 19:15:21 +01:00 committed by Gunnar Beutner
parent c1e2710a0d
commit 7b7548ce9d
2 changed files with 65 additions and 10 deletions

View file

@ -101,6 +101,7 @@ public:
void add_key_code(KeyCode key, bool ctrl, bool shift, bool alt);
Optional<TextRange> get_range(class VimEditingEngine& engine, bool normalize_for_position = false);
Optional<TextRange> get_repeat_range(class VimEditingEngine& engine, Unit, bool normalize_for_position = false);
Optional<TextPosition> get_position(VimEditingEngine& engine, bool in_visual_mode = false);
void reset();
@ -165,7 +166,7 @@ private:
YankType m_yank_type {};
String m_yank_buffer {};
void yank(YankType);
void yank(TextRange);
void yank(TextRange, YankType yank_type);
void put_before();
void put_after();