summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2011-02-25 18:16:24 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2011-02-25 18:16:24 +0100
commit7745ad28c355bdc686897f613f31d826e85d375c (patch)
treea2db453ed27a2d240002a50cf9d5f2343a34dc59
parentb23d35de06c229db84472d893c8645c63896a6cd (diff)
downloadorg-mode-7745ad28c355bdc686897f613f31d826e85d375c.tar.gz
org-list: fix checkbox toggling
* lisp/org-list.el (org-toggle-checkbox): fix bug where top item in list was omitted when checking boxes. Patch from Nick Dokos.
-rw-r--r--lisp/org-list.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-list.el b/lisp/org-list.el
index f66c665..1449062 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -2134,7 +2134,7 @@ in subtree, ignoring drawers."
(bottom (copy-marker (org-list-get-bottom-point struct)))
(items-to-toggle (org-remove-if
(lambda (e) (or (< e lim-up) (> e lim-down)))
- (mapcar 'car (cdr struct)))))
+ (mapcar 'car struct))))
(mapc (lambda (e) (org-list-set-checkbox
e struct
;; if there is no box at item, leave as-is