File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -2036,17 +2036,13 @@ namespace igfd
20362036 {
20372037 exploreByKey = true ;
20382038 if (locateFileByInputChar_lastFileIdx > 0 )
2039- {
20402039 locateFileByInputChar_lastFileIdx--;
2041- }
20422040 }
20432041 else if (ImGui::IsKeyPressed (IGFD_KEY_DOWN))
20442042 {
20452043 exploreByKey = true ;
20462044 if (locateFileByInputChar_lastFileIdx < m_FilteredFileList.size () - 1 )
2047- {
20482045 locateFileByInputChar_lastFileIdx++;
2049- }
20502046 }
20512047 else if (ImGui::IsKeyReleased (IGFD_KEY_ENTER))
20522048 {
@@ -2061,7 +2057,7 @@ namespace igfd
20612057
20622058 if (exploreByKey)
20632059 {
2064- float p = (float )((double )locateFileByInputChar_lastFileIdx / (double )m_FilteredFileList.size ()) * ImGui::GetScrollMaxY ();
2060+ float p = (float )((double )locateFileByInputChar_lastFileIdx / (double )m_FilteredFileList.size ()) * ImGui::GetScrollMaxY ();
20652061 ImGui::SetScrollY (p);
20662062 StartFlashItem (locateFileByInputChar_lastFileIdx);
20672063
@@ -2077,7 +2073,7 @@ namespace igfd
20772073 {
20782074 // changement de repertoire
20792075 SetPath (m_CurrentPath);
2080- if (locateFileByInputChar_lastFileIdx > m_FileList .size () - 1 )
2076+ if (locateFileByInputChar_lastFileIdx > m_FilteredFileList .size () - 1 )
20812077 {
20822078 locateFileByInputChar_lastFileIdx = 0 ;
20832079 }
You can’t perform that action at this time.
0 commit comments