Просмотр исходного кода

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 12 лет назад
Родитель
Сommit
f7f1b4bb7e
1 измененных файлов с 2 добавлено и 2 удалено
  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)