Explorar o código

Fix C-c C-c error when called on attributes attached to a plain list

* lisp/org.el (org-ctrl-c-ctrl-c): Fix error when called on attributes
  attached to a plain list.
Nicolas Goaziou %!s(int64=12) %!d(string=hai) anos
pai
achega
f7f1b4bb7e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      lisp/org.el

+ 2 - 2
lisp/org.el

@@ -19653,8 +19653,8 @@ This command does many different things, depending on context:
 	       (org-list-set-checkbox begin struct new-box)))
 	     (org-list-write-struct
 	      struct (org-list-parents-alist struct) old-struct)
-	     (org-update-checkbox-count-maybe))
-	   (org-list-send-list 'maybe))
+	     (org-update-checkbox-count-maybe)
+	     (save-excursion (goto-char begin) (org-list-send-list 'maybe))))
 	  ((property-drawer node-property)
 	   (call-interactively 'org-property-action))
 	  ((radio-target target)