- fix: "todo" with lowercase can't be found

This commit is contained in:
royqh1979@gmail.com 2021-10-03 23:16:54 +08:00
parent 4fe1766ccd
commit 13ab0bd9e6
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ void TodoThread::run()
attr = highlighter->getTokenAttribute();
if (attr == commentAttr) {
QString token = highlighter->getToken();
int pos = token.indexOf("TODO:",Qt::CaseInsensitive);
int pos = token.indexOf("TODO:",0,Qt::CaseInsensitive);
if (pos>=0) {
emit todoFound(
mFilename,