From b8f69e1bd30e795b2dbae4cd8d17c46c9d969050 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Wed, 28 Mar 2018 16:14:40 -0500 Subject: [PATCH] Fix bug with \n translation This causes \n characters to be displayed more consistently. --- lib/line_wrapper.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/line_wrapper.coffee b/lib/line_wrapper.coffee index 25db6581a..efbf9e95f 100644 --- a/lib/line_wrapper.coffee +++ b/lib/line_wrapper.coffee @@ -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