Fix #1398198 [Edit Book: Strange backwards selection when you type XML entities](https://bugs.launchpad.net/calibre/+bug/1398198)

This commit is contained in:
Kovid Goyal 2014-12-02 08:41:29 +05:30
parent 42600c66d2
commit 623926db15

View File

@ -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()