Skip to content

Commit a13c409

Browse files
committed
Fixed bug where triggers would not match if UTF-8 turned on
1 parent d94c351 commit a13c409

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ProcessPreviousLine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ assemble the full text of the original line.
572572
}
573573

574574
// only evaluate if can process them
575-
if (iBad < 0)
575+
if (iBad <= 0)
576576
{
577577
// timer t ("Process all triggers");
578578

Utilities.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2868,7 +2868,7 @@ int UMessageBox (const char * sText, UINT nType, const char * sTitle)
28682868
iBad = _pcre_valid_utf8 ((unsigned char *) sText, strlen (sText));
28692869

28702870
// use PCRE to validate the string first - if bad, fall back to standard box
2871-
if (iBad >= 0)
2871+
if (iBad > 0)
28722872
return ::AfxMessageBox (sText, nType);
28732873

28742874
// find how big table has to be

0 commit comments

Comments
 (0)