Completer detects xrefs when wrapped

This commit is contained in:
Olivier Keshavjee 2015-06-28 12:55:32 +02:00
parent 41fbdd2bdd
commit b1505ffe3d

View file

@ -50,7 +50,7 @@ class textEditCompleter(textEditView):
def refUnderCursor(self, cursor):
pos = cursor.position()
cursor.select(QTextCursor.LineUnderCursor)
cursor.select(QTextCursor.BlockUnderCursor)
text = cursor.selectedText()
pos -= cursor.selectionStart()
match = re.findall(r"::\w:\d+?::", text)