org-list: fix bug in `org-toggle-checkbox' on current item

* lisp/org-list.el (org-toggle-checkbox): lim-down must be a marker.
This commit is contained in:
Nicolas Goaziou 2011-08-12 15:11:19 +02:00
parent 9c33b9c259
commit b4aee73ef1
1 changed files with 1 additions and 1 deletions

View File

@ -2275,7 +2275,7 @@ in subtree, ignoring drawers."
((org-at-item-p)
(setq singlep t)
(setq lim-up (point-at-bol)
lim-down (point-at-eol)))
lim-down (copy-marker (point-at-eol))))
(t (error "Not at an item or heading, and no active region"))))
;; Determine the checkbox going to be applied to all items
;; within bounds.