From 8139b4fa30dd6ad6e37ff28c77bc178fc4393a9e Mon Sep 17 00:00:00 2001 From: Devon Govett Date: Wed, 19 Feb 2014 12:02:53 -0800 Subject: [PATCH] Add missing word count --- lib/line_wrapper.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/line_wrapper.coffee b/lib/line_wrapper.coffee index 3578c51..9686a20 100644 --- a/lib/line_wrapper.coffee +++ b/lib/line_wrapper.coffee @@ -170,7 +170,9 @@ class LineWrapper extends EventEmitter if w > @spaceLeft buffer = word textWidth = w + wc = 1 emitLine() + @spaceLeft = @lineWidth buffer = '' textWidth = 0