From 05ae6894a573ea762277e35cbc604c350c12c7c1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 29 Jul 2019 10:48:54 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/editor/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/editor/text.py b/src/calibre/gui2/tweak_book/editor/text.py index 9f3208dd1a..86c8739399 100644 --- a/src/calibre/gui2/tweak_book/editor/text.py +++ b/src/calibre/gui2/tweak_book/editor/text.py @@ -844,7 +844,7 @@ class TextEdit(PlainTextEdit): height = 1600 c = self.textCursor() template, alt = 'url(%s)', '' - left = min(c.position(), c.anchor) + left = min(c.position(), c.anchor()) if self.syntax == 'html': left, right = self.get_range_inside_tag() c.setPosition(left)