From baa4e2590db418c345e53a42e70be24a29805104 Mon Sep 17 00:00:00 2001 From: Jools Wills Date: Mon, 13 Mar 2017 18:16:57 +0000 Subject: [PATCH] make jump to letter move to first occurrence of the letter --- es-app/src/guis/GuiGamelistOptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-app/src/guis/GuiGamelistOptions.cpp b/es-app/src/guis/GuiGamelistOptions.cpp index 1c8948cc5..cb8f45d68 100644 --- a/es-app/src/guis/GuiGamelistOptions.cpp +++ b/es-app/src/guis/GuiGamelistOptions.cpp @@ -104,7 +104,7 @@ void GuiGamelistOptions::jumpToLetter() if(checkLetter < letter) min = mid + 1; - else if(checkLetter > letter) + else if(checkLetter > letter || (mid > 0 && (letter == toupper(files.at(mid - 1)->getName()[0])))) max = mid - 1; else break; //exact match found