We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33fbe05 commit 6d58a6eCopy full SHA for 6d58a6e
lib/thor/shell/basic.rb
@@ -234,9 +234,9 @@ def print_wrapped(message, options = {})
234
unwrapped.split(" ").inject do |memo, word|
235
word = word.gsub(/\n\005/, "\n").gsub(/\005/, "\n")
236
counter = 0 if word.include? "\n"
237
- if (counter + word.length + indent) < (width + word.length)
+ if (counter + word.length + 1) < width
238
memo = "#{memo} #{word}"
239
- counter += word.length+indent
+ counter += (word.length + 1)
240
else
241
memo = "#{memo}\n#{word}"
242
counter = word.length
0 commit comments