summaryrefslogtreecommitdiff
path: root/lisp/textmodes/org.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/textmodes/org.el')
-rw-r--r--lisp/textmodes/org.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el
index 6a3fd27380a..79d526cbe76 100644
--- a/lisp/textmodes/org.el
+++ b/lisp/textmodes/org.el
@@ -8713,6 +8713,8 @@ With prefix ARG, realign all tags in headings in the current buffer."
(if (equal tags "")
(save-excursion
(beginning-of-line 1)
+ (skip-chars-forward "*")
+ (if (= (char-after) ?\ ) (forward-char 1))
(and (re-search-forward "[ \t]+$" (point-at-eol) t)
(replace-match "")))
(move-to-column (max (current-column)