Procházet zdrojové kódy

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.
Nicolas Goaziou před 14 roky
rodič
revize
7745ad28c3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lisp/org-list.el

+ 1 - 1
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