Bugs item #1587933, was opened at 2006-10-31 14:27
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1587933&group_id=2439
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Scintilla
Group: Bug
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: AverageJoeCode (bugmenomore)
Assigned to: Nobody/Anonymous (nobody)
Summary: regex and whole word
Initial Comment:
find in files ignores the 'Match whole word only' when
the 'regular expression' is checked.
fix:
in scintilla\src\Document.cxx in Document::FindText
after:
int success = pre->Execute(di, startOfLine, endOfLine);
add:
//Don't match if the user requested a "whole word"
and it isn't.
pos = pre->bopat[0];
lenRet = pre->eopat[0] - pre->bopat[0];
if (success && word &&
IsWordAt(pos, pos + lenRet) == false)
{
continue; // Match was found, but not a whole
word.
}
if (success) {
if (increment == -1) {
notice:
pos = pre->bopat[0];
lenRet = pre->eopat[0] - pre->bopat[0];
were moved out of the if (success) {
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1587933&group_id=2439
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest