Skip to content

Commit

Permalink
fix: top org headline detection
Browse files Browse the repository at this point in the history
  • Loading branch information
cepehang committed Aug 12, 2023
1 parent 63a74d4 commit 8cc06d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions org-jira.el
Original file line number Diff line number Diff line change
Expand Up @@ -1086,8 +1086,8 @@ ORG-JIRA-PROJ-KEY-OVERRIDE being set before and after running."
(let ((elem (org-element-at-point)))
(and (eq 'headline (car elem))
(equal (format "%s-Tickets" proj-key)
(plist-get (cadr elem) :title))
(= 1 (plist-get (cadr elem) :level)))))
(org-element-property :title elem))
(= 1 (org-element-property :level elem)))))

(defun org-jira--maybe-render-top-heading (proj-key)
"Ensure that there is a headline for PROJ-KEY at the top of the file."
Expand Down

0 comments on commit 8cc06d4

Please sign in to comment.