Skip to content

Commit

Permalink
Fix for initial-input in #'org-jira-read-issue-type
Browse files Browse the repository at this point in the history
  • Loading branch information
ahungry committed Apr 13, 2023
1 parent 2ca5df5 commit dcec7bb
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions org-jira.el
Original file line number Diff line number Diff line change
Expand Up @@ -1764,14 +1764,18 @@ that should be bound to an issue."
(jiralib-get-issue-types))))
(initial-input (when (member (car org-jira-type-read-history) issue-types)
org-jira-type-read-history)))

;; TODO: The completing-read cards as such are all over the place, and always tend
;; to follow this exact same call structure - we should abstract to a single fn
;; that will allow calling with fewer or keyword args
(completing-read
"Type: "
issue-types
nil
t
nil
initial-input
(car initial-input))))
"Type: " ; PROMPT
issue-types ; COLLECTION
nil ; PREDICATE
t ; REQUIRE-MATCH
nil ; INITIAL-INPUT
'initial-input ; HIST
(car initial-input)))) ; DEF

(defun org-jira-read-subtask-type ()
"Read issue type name."
Expand Down

0 comments on commit dcec7bb

Please sign in to comment.