Browse Source

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

* lisp/org-list.el (org-toggle-checkbox): lim-down must be a marker.
Nicolas Goaziou 8 years ago
parent
commit
b4aee73ef1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-list.el

+ 1 - 1
lisp/org-list.el

@@ -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.