瀏覽代碼

org-list: don't clear marker while still in use

* lisp/org-list.el (org-toggle-checkbox): don't clear lim-down while
  used in the while loop.
Nicolas Goaziou 13 年之前
父節點
當前提交
1bbfec57af
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lisp/org-list.el

+ 2 - 2
lisp/org-list.el

@@ -2329,9 +2329,9 @@ in subtree, ignoring drawers."
 	     "Checkboxes were removed due to unchecked box at line %d"
 	     (org-current-line block-item))))
 	  (goto-char bottom)
-	  (move-marker lim-down nil)
 	  (move-marker bottom nil)
-	  (org-list-struct-apply-struct struct struct-copy)))))
+	  (org-list-struct-apply-struct struct struct-copy)))
+      (move-marker lim-down nil)))
   (org-update-checkbox-count-maybe))
 
 (defun org-reset-checkbox-state-subtree ()