From 2567227a92a10c0d88407dde232c4a3c3bc23d1a Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Fri, 29 Jun 2018 09:25:19 -0700 Subject: [PATCH] Allows the text continue feature to work when the starting string is empty --- lib/line_wrapper.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/line_wrapper.coffee b/lib/line_wrapper.coffee index 5737735..3c20844 100644 --- a/lib/line_wrapper.coffee +++ b/lib/line_wrapper.coffee @@ -219,7 +219,7 @@ class LineWrapper extends EventEmitter # the y position if options.continued is yes @continuedX = 0 if lc > 1 - @continuedX += options.textWidth + @continuedX += options.textWidth or 0 @document.y = y else @document.x = @startX