File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -2036,17 +2036,13 @@ namespace igfd
2036
2036
{
2037
2037
exploreByKey = true ;
2038
2038
if (locateFileByInputChar_lastFileIdx > 0 )
2039
- {
2040
2039
locateFileByInputChar_lastFileIdx--;
2041
- }
2042
2040
}
2043
2041
else if (ImGui::IsKeyPressed (IGFD_KEY_DOWN))
2044
2042
{
2045
2043
exploreByKey = true ;
2046
2044
if (locateFileByInputChar_lastFileIdx < m_FilteredFileList.size () - 1 )
2047
- {
2048
2045
locateFileByInputChar_lastFileIdx++;
2049
- }
2050
2046
}
2051
2047
else if (ImGui::IsKeyReleased (IGFD_KEY_ENTER))
2052
2048
{
@@ -2061,7 +2057,7 @@ namespace igfd
2061
2057
2062
2058
if (exploreByKey)
2063
2059
{
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 ();
2065
2061
ImGui::SetScrollY (p);
2066
2062
StartFlashItem (locateFileByInputChar_lastFileIdx);
2067
2063
@@ -2077,7 +2073,7 @@ namespace igfd
2077
2073
{
2078
2074
// changement de repertoire
2079
2075
SetPath (m_CurrentPath);
2080
- if (locateFileByInputChar_lastFileIdx > m_FileList .size () - 1 )
2076
+ if (locateFileByInputChar_lastFileIdx > m_FilteredFileList .size () - 1 )
2081
2077
{
2082
2078
locateFileByInputChar_lastFileIdx = 0 ;
2083
2079
}
You can’t perform that action at this time.
0 commit comments