Browse Source

Column view: Use `org-hide-leading-stars'

* lisp/org-colview.el (org-columns): Make building of the item stars
dependent on `org-hide-leading-stars'.
Michael Brand 5 years ago
parent
commit
bfa670cd4e
1 changed files with 5 additions and 2 deletions
  1. 5 2
      lisp/org-colview.el

+ 5 - 2
lisp/org-colview.el

@@ -718,8 +718,11 @@ When COLUMNS-FMT-STRING is non-nil, use it as the column format."
 			  (cons p
 				(let ((v (org-columns--value p (point))))
 				  (if (not (equal "ITEM" p)) v
-				    (concat (make-string (org-current-level) ?*)
-					    " "
+				    (concat (make-string
+					     (1- (org-current-level))
+					     (if org-hide-leading-stars
+						 ?\s ?*))
+					    "* "
 					    v)))))
 			column-names)))
 	       nil nil (and org-columns-skip-archived-trees 'archive))))