mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-20 13:06:35 +01:00
More robust use of goto_sourceline
This commit is contained in:
parent
0a0c9039e0
commit
fd5ea1552e
1 changed files with 3 additions and 2 deletions
|
|
@ -1422,9 +1422,10 @@ def show_partial_cfi_in_editor(self, name, cfi):
|
|||
tags_before.append(tag)
|
||||
if tag is node:
|
||||
break
|
||||
else:
|
||||
tags_before.append(node)
|
||||
lnum = int(lnum)
|
||||
editor.goto_sourceline(lnum, tags_before, attribute='id' if node.get('id') else None)
|
||||
return True
|
||||
return editor.goto_sourceline(lnum, tags_before, attribute='id' if node.get('id') else None)
|
||||
return False
|
||||
|
||||
def goto_style_declaration(self, data):
|
||||
|
|
|
|||
Loading…
Reference in a new issue