summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-04-22 00:24:39 +0200
committerBastien Guerry <bzg@altern.org>2013-04-22 00:24:39 +0200
commite6776ce711a1653fcfeae3da75d129c929b53a0e (patch)
tree08bea18860450f4e010f33abf898e640809f8c20
parent37f94d235db13295aa54bb59bbf77a8fbc8a5195 (diff)
downloadorg-mode-e6776ce711a1653fcfeae3da75d129c929b53a0e.tar.gz
org-list.el (org-sort-list): Fix infloop
* org-list.el (org-sort-list): Fix infloop. Thanks to Samuel Wales for reporting this.
-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 628dd0a..80ccc16 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -2836,7 +2836,7 @@ ignores hidden links."
((= dcst ?t) '<)))
(next-record (lambda ()
(skip-chars-forward " \r\t\n")
- (beginning-of-line)))
+ (or (eobp) (beginning-of-line))))
(end-record (lambda ()
(goto-char (org-list-get-item-end-before-blank
(point) struct))))