Bugs item #1549610, was opened at 2006-08-30 14:51
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=1549610&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: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: ReSearch::PMatch bug with SearchInTarget (+FIx)

Initial Comment:
assume the document contains "asdf" and the search
string is "^a\(.+\)$" and the targetStart is 0 and the
targetEnd is 4, then Scintilla improperly reports a
non-match.  The cause and solution is given below:

RESearch::PMatch line 657 the code is:
case CHR:
   if (ci.CharAt(lp++) != *ap++)
      return NOTFOUND;
   break;

but it should be (works in all test cases I've tried):
case CHR:
   if(*ap == '$' && ci.CharAt(lp) == 0)
   {
      *ap++;
   }
   else if (ci.CharAt(lp++) != *ap++)
      return NOTFOUND;
   break;

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102439&aid=1549610&group_id=2439
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to