More robust use of goto_sourceline

This commit is contained in:
Kovid Goyal 2019-01-20 12:45:34 +05:30
parent 0a0c9039e0
commit fd5ea1552e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1422,9 +1422,10 @@ class Boss(QObject):
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):