diff --git a/src/calibre/gui2/tweak_book/editor/smarts/html.py b/src/calibre/gui2/tweak_book/editor/smarts/html.py index 349f18ead0..9510e8e6c3 100644 --- a/src/calibre/gui2/tweak_book/editor/smarts/html.py +++ b/src/calibre/gui2/tweak_book/editor/smarts/html.py @@ -608,7 +608,7 @@ class Smarts(NullSmarts): if repl != ent: c.setPosition(c.position() + m.start(), c.KeepAnchor) c.insertText(repl) - editor.setTextCursor(c) + editor.setTextCursor(c) def auto_close_tag(self, editor): c = editor.textCursor()