diff options
author | Carsten Dominik <carsten.dominik@gmail.com> | 2019-08-12 11:35:29 +0200 |
---|---|---|
committer | Carsten Dominik <carsten.dominik@gmail.com> | 2019-08-12 11:35:29 +0200 |
commit | e3856a0c8ed134ce21659ceb0bec75479506e1ea (patch) | |
tree | f9b09aae9596ba81307d9afe8161d8b5a3c88789 | |
parent | 495826e89724633331862d4e88d9af5e16635ba0 (diff) | |
download | org-mode-e3856a0c8ed134ce21659ceb0bec75479506e1ea.tar.gz |
Fix tag alignment after todo state change with empty headline
* lisp/org.el (org-todo): Fix tag alignment with empty headline.
-rw-r--r-- | lisp/org.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index 5c35d74..132c1d6 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))) |