mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:27:34 +00:00
Shell: Refactor append/insert procedure
This patch just factors out the procedure of adding characters at the cursor position. It makes tab completion code much nicer.
This commit is contained in:
parent
bb311b970f
commit
244e525c73
2 changed files with 47 additions and 21 deletions
|
@ -21,7 +21,8 @@ public:
|
|||
|
||||
private:
|
||||
void clear_line();
|
||||
void append(const String&);
|
||||
void insert(const String&);
|
||||
void insert(const char);
|
||||
void cut_mismatching_chars(String& completion, const String& program, size_t token_length);
|
||||
void tab_complete_first_token();
|
||||
void vt_save_cursor();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue