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.
This commit is contained in:
parent
b23d35de06
commit
7745ad28c3
|
@ -2134,7 +2134,7 @@ in subtree, ignoring drawers."
|
||||||
(bottom (copy-marker (org-list-get-bottom-point struct)))
|
(bottom (copy-marker (org-list-get-bottom-point struct)))
|
||||||
(items-to-toggle (org-remove-if
|
(items-to-toggle (org-remove-if
|
||||||
(lambda (e) (or (< e lim-up) (> e lim-down)))
|
(lambda (e) (or (< e lim-up) (> e lim-down)))
|
||||||
(mapcar 'car (cdr struct)))))
|
(mapcar 'car struct))))
|
||||||
(mapc (lambda (e) (org-list-set-checkbox
|
(mapc (lambda (e) (org-list-set-checkbox
|
||||||
e struct
|
e struct
|
||||||
;; if there is no box at item, leave as-is
|
;; if there is no box at item, leave as-is
|
||||||
|
|
Loading…
Reference in New Issue