Explorar o código

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 %!s(int64=9) %!d(string=hai) anos
pai
achega
8a293ac999
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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