From 46a8a0e4c02e779b47e0850c54f3e838192a15cc Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Sat, 1 Aug 2020 16:38:00 +0200 Subject: [PATCH] + fix: non case sensitive style attribute search (find file extensions non case sensitive) --- src/Styles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Styles.c b/src/Styles.c index 0611378f9..c2b9775dd 100644 --- a/src/Styles.c +++ b/src/Styles.c @@ -961,7 +961,7 @@ void Style_SetLexerSpecificProperties(const int lexerId) // static bool Style_StrGetAttributeEx(LPCWSTR lpszStyle, LPCWSTR key, const size_t keyLen) { - LPCWSTR p = StrStr(lpszStyle, key); + LPCWSTR p = StrStrI(lpszStyle, key); while (p) { WCHAR chPrev = (p == lpszStyle) ? L';' : p[-1]; if (chPrev == L' ') { @@ -978,7 +978,7 @@ static bool Style_StrGetAttributeEx(LPCWSTR lpszStyle, LPCWSTR key, const size_t return true; } } - p = StrStr(p, key); + p = StrStrI(p, key); } return false; }