branch: externals-release/org
commit 04c0890203b016676872949f0fcbc4552bd86e2a
Author: Morgan Smith <[email protected]>
Commit: Ihor Radchenko <[email protected]>

    org-tags-completion-function: Return correct boundary
    
    * lisp/org.el (org-tags-completion-function): Previously a string was
    returned when the boundry should be a number.  Now it is a number.
    
    Reported-by: "martin" <[email protected]>
    Link: 
https://list.orgmode.org/caofdpfwvy6ouzrz3qkn7aqlyvpgs3exx6qa-ftgfj1c7oak...@mail.gmail.com/
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index bda3bad5d4..e02dda073c 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -12126,7 +12126,7 @@ which see."
       (`lambda (assoc string org-last-tags-completion-table)) ;exact match?
       (`(boundaries . ,suffix)
        (let ((end (if (string-match "[-+:&,|]" suffix)
-                      (match-string 0 suffix)
+                      (match-beginning 0)
                     (length suffix))))
          `(boundaries ,(or begin 0) . ,end)))
       (`nil

Reply via email to