Browse Source

org-colview: Fix column view in agenda

* org-colview(org-columns-display-here): Fix for lines without level by
  giving them artificially level 0.

Idea: Exclude lines without level from column-view.
Marco Wahl 9 years ago
parent
commit
8a293ac999
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-colview.el

+ 1 - 1
lisp/org-colview.el

@@ -162,7 +162,7 @@ This is the compiled version of the format.")
   (interactive)
   (save-excursion
     (beginning-of-line)
-    (let* ((level (org-current-level))
+    (let* ((level (or (org-current-level) 0))
 	   (level-face (and (looking-at "\\(\\**\\)\\(\\* \\)")
 			    (org-get-level-face 2)))
 	   (ref-face (or level-face