Browse Source

org: Fix match of todo items

* lisp/org.el (org-show-todo-tree): Don't match headlines that start
  with a todo kwd as prefix.
Marco Wahl 6 years ago
parent
commit
ed7ea512c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org.el

+ 1 - 1
lisp/org.el

@@ -12771,7 +12771,7 @@ of `org-todo-keywords-1'."
   (interactive "P")
   (let ((case-fold-search nil)
 	(kwd-re
-	 (cond ((null arg) org-not-done-regexp)
+	 (cond ((null arg) (concat org-not-done-regexp "\\s-"))
 	       ((equal arg '(4))
 		(let ((kwd
 		       (completing-read "Keyword (or KWD1|KWD2|...): "