Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.

Commit 2567227

Browse files
pretzelfischalafr
authored andcommitted
Allows the text continue feature to work when the starting string is empty
1 parent 93061f3 commit 2567227

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/line_wrapper.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class LineWrapper extends EventEmitter
219219
# the y position
220220
if options.continued is yes
221221
@continuedX = 0 if lc > 1
222-
@continuedX += options.textWidth
222+
@continuedX += options.textWidth or 0
223223
@document.y = y
224224
else
225225
@document.x = @startX

0 commit comments

Comments
 (0)