Explorar o código

Bug fix: infinite loop while looking for top point with indent method

Nicolas Goaziou %!s(int64=15) %!d(string=hai) anos
pai
achega
113818cdf0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lisp/org-list.el

+ 1 - 1
lisp/org-list.el

@@ -444,7 +444,7 @@ List ending is determined by indentation of text. See
              (while t
                (cond
 		((not prev-p) (throw 'exit (1+ (point-at-eol))))
-		((= limit prev-p) (throw 'exit limit))
+		((= (point) prev-p) (throw 'exit prev-p))
 		(t
 		 (goto-char prev-p)
 		 (beginning-of-line 0)