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

LibLine: Properly show and cleanup suggestions

Prior to this, we would display them and never clean then up.
This commit is contained in:
AnotherTest 2020-04-11 13:29:55 +04:30 committed by Andreas Kling
parent 502299919a
commit 173c65660a
2 changed files with 35 additions and 26 deletions

View file

@ -177,9 +177,11 @@ private:
size_t m_chars_inserted_in_the_middle { 0 };
size_t m_times_tab_pressed { 0 };
size_t m_num_columns { 0 };
size_t m_num_lines { 1 };
size_t m_cached_prompt_length { 0 };
size_t m_old_prompt_length { 0 };
size_t m_cached_buffer_size { 0 };
size_t m_lines_used_for_last_suggestions { 0 };
bool m_cached_prompt_valid { false };
// exact position before our prompt in the terminal