From 36928d655aa1b53d5861aeb0b01fcb25dd787eeb Mon Sep 17 00:00:00 2001 From: Gustav Date: Sat, 6 Nov 2021 14:03:36 +0100 Subject: [PATCH] (fix)completions: fix same-line completions (#1948) Make final regex group non-greedy, allowing same-line completions. Closes #1790 . --- org-roam-node.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-roam-node.el b/org-roam-node.el index ca43e5c..03e9aa8 100644 --- a/org-roam-node.el +++ b/org-roam-node.el @@ -727,7 +727,7 @@ Assumes that the cursor was put where the link is." ;;;;;; Completion-at-point interface (defconst org-roam-bracket-completion-re - "\\[\\[\\(\\(?:roam:\\)?\\)\\([^z-a]*\\)]]" + "\\[\\[\\(\\(?:roam:\\)?\\)\\([^z-a]*?\\)]]" "Regex for completion within link brackets. We use this as a substitute for `org-link-bracket-re', because `org-link-bracket-re' requires content within the brackets for a match.")