mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-02 11:04:33 +12:00
Completer detects xrefs when wrapped
This commit is contained in:
parent
41fbdd2bdd
commit
b1505ffe3d
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue