This commit is contained in:
Kovid Goyal 2019-07-29 10:48:54 +05:30
parent 7d4695f37e
commit 05ae6894a5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -844,7 +844,7 @@ class TextEdit(PlainTextEdit):
height = 1600 height = 1600
c = self.textCursor() c = self.textCursor()
template, alt = 'url(%s)', '' template, alt = 'url(%s)', ''
left = min(c.position(), c.anchor) left = min(c.position(), c.anchor())
if self.syntax == 'html': if self.syntax == 'html':
left, right = self.get_range_inside_tag() left, right = self.get_range_inside_tag()
c.setPosition(left) c.setPosition(left)