소스 검색

LibLine: Reset suggestion index back to zero when fetching new ones

Ali Mohammad Pur 3 년 전
부모
커밋
dbc2b746b8
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Userland/Libraries/LibLine/Editor.cpp

+ 1 - 0
Userland/Libraries/LibLine/Editor.cpp

@@ -1061,6 +1061,7 @@ void Editor::handle_read_event()
             // further tabs simply show the cached completions.
             if (m_times_tab_pressed == 1) {
                 m_suggestion_manager.set_suggestions(on_tab_complete(*this));
+                m_suggestion_manager.set_start_index(0);
                 m_prompt_lines_at_suggestion_initiation = num_lines();
                 if (m_suggestion_manager.count() == 0) {
                     // There are no suggestions, beep.