(fix)completions: fix same-line completions (#1948)

Make final regex group non-greedy, allowing same-line completions. Closes #1790 .
This commit is contained in:
Gustav
2021-11-06 14:03:36 +01:00
committed by GitHub
parent 4a2b44252e
commit 36928d655a

View File

@ -727,7 +727,7 @@ Assumes that the cursor was put where the link is."
;;;;;; Completion-at-point interface ;;;;;; Completion-at-point interface
(defconst org-roam-bracket-completion-re (defconst org-roam-bracket-completion-re
"\\[\\[\\(\\(?:roam:\\)?\\)\\([^z-a]*\\)]]" "\\[\\[\\(\\(?:roam:\\)?\\)\\([^z-a]*?\\)]]"
"Regex for completion within link brackets. "Regex for completion within link brackets.
We use this as a substitute for `org-link-bracket-re', because We use this as a substitute for `org-link-bracket-re', because
`org-link-bracket-re' requires content within the brackets for a match.") `org-link-bracket-re' requires content within the brackets for a match.")