Skip to content

Commit b859430

Browse files
committed
docu update about correct rereplace usage
1 parent d79ac2d commit b859430

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/source/scintilla.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1794,7 +1794,7 @@ Scintilla Methods
17941794

17951795
.. method:: editor.getSelectionHidden() -> bool
17961796

1797-
1797+
17981798

17991799
See Scintilla documentation for `SCI_GETSELECTIONHIDDEN <https://www.scintilla.org/ScintillaDoc.html#SCI_GETSELECTIONHIDDEN>`_
18001800

@@ -5229,6 +5229,10 @@ Helper Methods
52295229
that from Notepad++, which is actually the `Boost::Regex <https://www.boost.org/doc/libs/1_80_0/libs/regex/doc/html/index.html>`_
52305230
implementation (specifically the Perl regular expression syntax).
52315231

5232+
IMPORTANT NOTE:
5233+
The replace function provided to editor.rereplace should not invoke additional calls to editor.rereplace or other replacement functions
5234+
that modify the same text being processed. Doing so may result in unpredictable behavior.
5235+
52325236

52335237
``flags`` are from the re module (e.g. ``re.IGNORECASE``), so ``import re`` if you use the flags.
52345238

0 commit comments

Comments
 (0)