Procházet zdrojové kódy

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 před 14 roky
rodič
revize
2f72b3efcb
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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."