From e3856a0c8ed134ce21659ceb0bec75479506e1ea Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Mon, 12 Aug 2019 11:35:29 +0200 Subject: [PATCH] Fix tag alignment after todo state change with empty headline * lisp/org.el (org-todo): Fix tag alignment with empty headline. --- lisp/org.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 5c35d740d..132c1d6c1 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -10229,7 +10229,9 @@ When called through ELisp, arg is also interpreted in the following way: (looking-at org-todo-line-regexp)) (< (point) (+ 2 (or (match-end 2) (match-end 1))))) (goto-char (or (match-end 2) (match-end 1))) - (and (looking-at " ") (just-one-space))) + (and (looking-at " ") + (not (looking-at " *:")) + (just-one-space))) (when org-trigger-hook (save-excursion (run-hook-with-args 'org-trigger-hook change-plist)))