Skip to content

Commit

Permalink
Interactive mode bugfix for a single customizable option (#346)
Browse files Browse the repository at this point in the history
* push -> push!

* Replace String with Symbol

---------

Co-authored-by: Guillaume Dalle <[email protected]>
  • Loading branch information
rossviljoen and gdalle authored Dec 19, 2023
1 parent 0a1600a commit 564c452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/template.jl
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function interactive(::Type{Template}; kwargs...)
println("Template keywords to customize:")
menu = MultiSelectMenu(map(string, customizable); pagesize=length(customizable))
customize = customizable[sort!(collect(request(menu)))]
just_one && lastindex(customizable) in customize && return Template(; kwargs...)
just_one && last(customizable) in customize && return Template(; kwargs...)

# Prompt for each keyword.
foreach(customize) do k
Expand Down

0 comments on commit 564c452

Please sign in to comment.