1
Fork 0
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:
William McPherson 2019-12-10 21:27:31 +11:00 committed by Andreas Kling
parent bb311b970f
commit 244e525c73
2 changed files with 47 additions and 21 deletions

View file

@ -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();