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
commit 173c65660a
Notes: sideshowbarker 2024-07-19 07:43:11 +09:00
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