Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/line_wrapper.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ class LineWrapper extends EventEmitter
while w > @spaceLeft and l > 0
w = @wordWidth word.slice(0, --l)

# send a required break unless this is the last piece
fbk.required = l < word.length
# send a required break unless this is the last piece and a linebreak is not specified
fbk.required = bk.required or l < word.length
shouldContinue = fn word.slice(0, l), w, fbk, lbk
lbk = required: false

Expand Down