matkuki / qscintilla_docs

Documentation for QScintilla editing component of the PyQt framework
http://qscintilla.com/
GNU General Public License v3.0
59 stars 17 forks source link

when find or replace at regex, such as ^$\r\n,\r\n cannot be recognized. #16

Open cxasm opened 2 years ago

cxasm commented 2 years ago

when find or replace at regex, such as ^$\r\n, The newline symbol at the end of the line cannot be recognized. If you want to replace these characters, you will fail. It's not a good idea。

Sci::Position BuiltinRegex::FindText(Document doc, Sci::Position minPos, Sci::Position maxPos, const char s, bool caseSensitive, bool, bool, int flags, ...... Sci::Position startOfLine = doc->LineStart(line); Sci::Position endOfLine = doc->LineEnd(line); ------->myabe to change with LineStart(line+1)