branch: externals/org
commit 10cdb2024313b1b65d11e95b08c65950a0db0bdb
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    org-mouse: Fix stars activated outside headlines
    
    * lisp/org-mouse.el (org-mode-hook): Fix regexp used to fontify
    leading stars.
    
    Reported-by: Phil Estival <p...@7d.nz>
    Link: https://orgmode.org/list/28c4a78a-7202-49f8-8fff-de8394150...@7d.nz
---
 lisp/org-mouse.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-mouse.el b/lisp/org-mouse.el
index 928d18d662..a282f004c7 100644
--- a/lisp/org-mouse.el
+++ b/lisp/org-mouse.el
@@ -887,7 +887,7 @@ This means, between the beginning of line and the point."
             (when (memq 'activate-stars org-mouse-features)
               (font-lock-add-keywords
                nil
-               `((,org-outline-regexp
+               `((,org-outline-regexp-bol
                   0 `(face org-link mouse-face highlight keymap ,org-mouse-map)
                   'prepend))
                t))

Reply via email to