Browse Source

Fix an error in org-taskjuggler-get-unique-id

Don't try to pop from an empty list and downcase the result
Christian Egli 14 năm trước cách đây
mục cha
commit
9542f8fa98
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lisp/org-taskjuggler.el

+ 1 - 1
lisp/org-taskjuggler.el

@@ -503,7 +503,7 @@ finally add more underscore characters (\"_\")."
 	 (parts (split-string headline))
 	 (id (org-taskjuggler-clean-id (downcase (pop parts)))))
     ; try to add more parts of the headline to make it unique
-    (while (member id unique-ids)
+    (while (and (member id unique-ids) (car parts))
       (setq id (concat id "_" (org-taskjuggler-clean-id (downcase (pop parts))))))
     ; if its still not unique add "_"
     (while (member id unique-ids)