Browse Source

org-agenda: fix length computing

* lisp/org-agenda.el (org-format-agenda-item): Fix length computing.

Signed-off-by: Julien Danjou <julien@danjou.info>
Julien Danjou 14 years ago
parent
commit
9939312b37
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-agenda.el

+ 1 - 1
lisp/org-agenda.el

@@ -5331,7 +5331,7 @@ Any match of REMOVE-RE will be removed from TXT."
 
       ;; Set org-heading property on `txt' to mark the start of the
       ;; heading.
-      (add-text-properties 0 (1- (length txt)) '(org-heading t) txt)
+      (add-text-properties 0 (length txt) '(org-heading t) txt)
 
       ;; Prepare the variables needed in the eval of the compiled format
       (setq time (cond (s2 (concat