org-update-parent-todo-statistics: Fix infinite loop after 4254a54f8
* lisp/org.el (org-update-parent-todo-statistics): Make sure that we move to the end of updated cookie at the end of search loop, even when the cookie has not been updated. Reported-by: No Wayman <iarchivedmywholelife@gmail.com> Link: https://orgmode.org/list/87le6pucnv.fsf@gmail.com
This commit is contained in:
parent
e2caccfdf6
commit
505db97a8c
|
@ -9905,6 +9905,7 @@ statistics everywhere."
|
|||
(max 1 cnt-all)))
|
||||
(format "[%d/%d]" cnt-done cnt-all))
|
||||
ndel (- (match-end 0) checkbox-beg))
|
||||
(goto-char (match-end 0))
|
||||
(unless (string-equal new (buffer-substring checkbox-beg (match-end 0)))
|
||||
(goto-char checkbox-beg)
|
||||
(insert new)
|
||||
|
|
Loading…
Reference in New Issue