Skip to content

Commit

Permalink
Fix bug when it doesnt fit on screen
Browse files Browse the repository at this point in the history
  • Loading branch information
lavoiesl committed Sep 19, 2018
1 parent 784f828 commit 3929ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli/ui/prompt/interactive_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def render_options
max_num_length = (@options.size + 1).to_s.length

presented_options(recalculate: true).each do |choice, num|
is_chosen = @multiple && @chosen[num - 1]
is_chosen = @multiple && num && @chosen[num - 1]

padding = ' ' * (max_num_length - num.to_s.length)
message = " #{num}#{num ? '.' : ' '}#{padding}"
Expand Down

0 comments on commit 3929ad1

Please sign in to comment.