Make a few improvements to regex and remove debug output

This commit is contained in:
Veronica Berglyd Olsen committed 2024-06-01 14:16:05 +02:00
1 parent 987740f7e9
commit d190315909
3 files changed
+5 -7

No files matched your search

+3
View File
@@ -2030,6 +2030,9 @@ class GuiDocEditor(QPlainTextEdit):
cursor.movePosition(QtMoveLeft, QtKeepAnchor, nDelete)
cursor.insertText(tInsert)
# Re-highlight, since the auto-replace sometimes interferes with it
self._qDocument.syntaxHighlighter.rehighlightBlock(cursor.block())
return
@staticmethod