mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-22 21:34:58 +02:00
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:
parent
f6ade2c915
commit
0505bda865
@ -508,6 +508,10 @@ private :
|
|||||||
|
|
||||||
struct SortLexersInAlphabeticalOrder {
|
struct SortLexersInAlphabeticalOrder {
|
||||||
bool operator() (LexerStyler& l, LexerStyler& r) {
|
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;
|
return lstrcmp(l.getLexerDesc(), r.getLexerDesc()) < 0;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user