Sort "Search result" to the bottom in language list of Style Configurator

Exclude "Search Results" from the sort and placing it at the bottom as it was before:
2474cbeafd

Fix #11337, close #11557
This commit is contained in:
CennoxX 2022-04-20 10:52:00 +02:00 committed by Don Ho
parent f6ade2c915
commit 0505bda865
1 changed files with 4 additions and 0 deletions

View File

@ -508,6 +508,10 @@ private :
struct SortLexersInAlphabeticalOrder {
bool operator() (LexerStyler& l, LexerStyler& r) {
if (!lstrcmp(l.getLexerDesc(), TEXT("Search result")))
return false;
if (!lstrcmp(r.getLexerDesc(), TEXT("Search result")))
return true;
return lstrcmp(l.getLexerDesc(), r.getLexerDesc()) < 0;
}
};