lib/cli/ui/frame/frame_style/bracket.rb in cli-ui-2.1.0 vs lib/cli/ui/frame/frame_style/bracket.rb in cli-ui-2.2.0
- old
+ new
@@ -124,10 +124,10 @@
preamble_start = Frame.prefix_width
# If prefix_width is non-zero, we need to subtract the width of
# the final space, since we're going to write over it.
- preamble_start -= 1 unless preamble_start.zero?
+ preamble_start -= 1 if preamble_start.nonzero?
# Jumping around the line can cause some unwanted flashes
o << CLI::UI::ANSI.hide_cursor
# reset to column 1 so that things like ^C don't ruin formatting