Sfoglia il codice sorgente

Merge branch 'maint' into master

Kyle Meyer 5 anni fa
parent
commit
8402c4a778
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      lisp/org-agenda.el
  2. 1 1
      lisp/org.el

+ 1 - 1
lisp/org-agenda.el

@@ -3987,7 +3987,7 @@ agenda display, configure `org-agenda-finalize-hook'."
 	      p (string-to-char (match-string 2))
 	      b (match-beginning 1)
 	      e (if (eq org-agenda-fontify-priorities 'cookies)
-		    (match-end 1)
+		    (1+ (match-end 2))
 		  (point-at-eol))
 	      ov (make-overlay b e))
 	(overlay-put

+ 1 - 1
lisp/org.el

@@ -5846,7 +5846,7 @@ If TAG is a number, get the corresponding match group."
   "Add the special priority faces."
   (while (re-search-forward org-priority-regexp limit t)
     (let ((beg (match-beginning 1))
-	  (end (match-end 1)))
+	  (end (1+ (match-end 2))))
       (add-face-text-property
        beg end
        (org-get-priority-face (string-to-char (match-string 2))))