summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2011-08-12 15:11:19 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2011-08-12 15:11:19 +0200
commitb4aee73ef19211ff7d8051e1d0533cb699c200cf (patch)
treef6de2b47ec4a06e4e30360af18e63d2b7de7412b
parent9c33b9c259806b6cf6bf0bac01db9f47f6b38198 (diff)
downloadorg-mode-b4aee73ef19211ff7d8051e1d0533cb699c200cf.tar.gz
org-list: fix bug in `org-toggle-checkbox' on current item
* lisp/org-list.el (org-toggle-checkbox): lim-down must be a marker.
-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 2339c4d..64197e9 100644
--- a/lisp/org-list.el
+++ b/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.