diff options
author | Nicolas Goaziou <n.goaziou@gmail.com> | 2010-09-30 21:55:45 +0200 |
---|---|---|
committer | David Maus <dmaus@ictsoc.de> | 2010-10-11 20:35:30 +0200 |
commit | ce0d35a51cf489a65db513f085a3145420389500 (patch) | |
tree | 8bcbaaa163ba8fd1c473e8b529168d0cb257aef6 | |
parent | 584adacf20eb8c0c2a9838da64558d5012978ec2 (diff) | |
download | org-mode-ce0d35a51cf489a65db513f085a3145420389500.tar.gz |
Fix "invalid search bound" when toggling a checkbox
* org-list.el (org-toggle-checkbox): avoid some boundary error when
inserting a checkbox in an empty last item of a list.
-rw-r--r-- | lisp/org-list.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-list.el b/lisp/org-list.el index e5f607c..baa89af 100644 --- a/lisp/org-list.el +++ b/lisp/org-list.el @@ -1699,7 +1699,7 @@ in subtree, ignoring drawers." org-item-beginning-re limit 'move) (list (point) limit nil)))) ((org-at-item-p) - (list (point-at-bol) (point-at-eol) t)) + (list (point-at-bol) (1+ (point-at-eol)) t)) (t (error "Not at an item or heading, and no active region")))) (beg (car bounds)) ;; marker is needed because deleting or inserting checkboxes |