Selaa lähdekoodia

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.
Nicolas Goaziou 14 vuotta sitten
vanhempi
commit
1230cf9f09
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      lisp/org-list.el

+ 1 - 1
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.