浏览代码

Minor fix.

Nicolas Goaziou 14 年之前
父节点
当前提交
595ce4e7f8
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      lisp/org-list.el

+ 1 - 3
lisp/org-list.el

@@ -1995,13 +1995,11 @@ sublevels as a list of strings."
   (interactive)
   (if (not (org-in-item-p))
       (error "Not in a list")
-    (goto-char (org-list-top-point))
     (let ((list (org-list-parse-list t)) nstars)
       (save-excursion
 	(if (ignore-errors
 	      (org-back-to-heading))
-	    (progn (org-search-forward-unenclosed
-		    org-complex-heading-regexp nil t)
+	    (progn (looking-at org-complex-heading-regexp)
 		   (setq nstars (length (match-string 1))))
 	  (setq nstars 0)))
       (org-list-make-subtrees list (1+ nstars)))))