Prechádzať zdrojové kódy

LibLine: Reset next suggestion index when resetting suggestions

Otherwise we'd end up starting at the previous index on another
suggestion list.
Ali Mohammad Pur 3 rokov pred
rodič
commit
dd5fb7b32a

+ 1 - 0
Userland/Libraries/LibLine/SuggestionManager.h

@@ -124,6 +124,7 @@ public:
         m_last_shown_suggestion_display_length = 0;
         m_suggestions.clear();
         m_last_displayed_suggestion_index = 0;
+        m_next_suggestion_index = 0;
     }
 
 private: