Forgot the @ when matching on data-lnum

This commit is contained in:
Kovid Goyal 2019-01-21 15:28:51 +05:30
parent 09345a964f
commit 31ccd4f632
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1422,7 +1422,7 @@ class Boss(QObject):
lnum = node.get('data-lnum')
if lnum:
tags_before = []
for tag in root.xpath('//*[data-lnum="%s"]' % lnum):
for tag in root.xpath('//*[@data-lnum="%s"]' % lnum):
tags_before.append(barename(tag))
if tag is node:
break