summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2010-08-15 11:45:08 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2010-09-01 19:05:53 +0200
commit1230cf9f097d81d38a6838835bb31495576de030 (patch)
tree1acea79e44065636821317ea9baf5a5041e1749a
parent8385393fe68d12a30ebeb601a82203e7c69278ae (diff)
downloadorg-mode-1230cf9f097d81d38a6838835bb31495576de030.tar.gz
Fix bug when inserting an item after bottom point of list
* org-list.el (org-list-bottom-point): Take into consideration that bound of search can be before true ending of the list.
-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 94b4272..2fb10b6 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -563,7 +563,7 @@ A checkbox is blocked if all of the following conditions are fulfilled:
;; The list ending is either first point matching
;; `org-list-end-re', point at first white-line before next
;; heading, or eob.
- (or (org-list-terminator-between pos bound t) bound)))))
+ (or (org-list-terminator-between (min pos bound) bound t) bound)))))
(defun org-beginning-of-item ()
"Go to the beginning of the current hand-formatted item.