瀏覽代碼

Lists: Fix bug with lists at the end of a file

Now org-end-of-item-list does find the end of the buffer if that is
where the lists ends.
Carsten Dominik 16 年之前
父節點
當前提交
f756d17bcf
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lisp/org-list.el

+ 3 - 1
lisp/org-list.el

@@ -889,7 +889,9 @@ I.e. to the text after the last item."
 	(catch 'next
 	  (beginning-of-line 2)
 	  (if (looking-at "[ \t]*$")
-	      (throw (if (eobp) 'exit 'next) t))
+	      (if (eobp)
+		  (progn (setq pos (point)) (throw 'exit t))
+		(throw 'next t)))
 	  (skip-chars-forward " \t") (setq ind1 (current-column))
 	  (if (or (< ind1 ind)
 		  (and (= ind1 ind)