浏览代码

org-list: fix cookie updating

* lisp/org-list.el: move org-update-checkbox-count-maybe call outside
  of save-excursion to get back to original position.
Nicolas Goaziou 14 年之前
父节点
当前提交
2f72b3efcb
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lisp/org-list.el

+ 2 - 2
lisp/org-list.el

@@ -2164,8 +2164,8 @@ in subtree, ignoring drawers."
 	     "Checkboxes were removed due to unchecked box at line %d"
 	     (org-current-line block-item))))
 	  (goto-char bottom)
-	  (org-list-struct-apply-struct struct struct-copy))))
-    (org-update-checkbox-count-maybe)))
+	  (org-list-struct-apply-struct struct struct-copy)))))
+  (org-update-checkbox-count-maybe))
 
 (defun org-reset-checkbox-state-subtree ()
   "Reset all checkboxes in an entry subtree."