From 639264f34589d0637860ffbd47d788e03c48c76a Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Wed, 30 Jan 2013 23:53:49 -0500 Subject: [PATCH] don't wrap after printing in last cell --- terminal.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminal.coffee b/terminal.coffee index 37d3971..19296bf 100644 --- a/terminal.coffee +++ b/terminal.coffee @@ -92,11 +92,11 @@ class Terminal when '\x0a', '\x0b' # lf, vertical tab (same thing) @wrap_to_next_line() else + if @x >= @width + @wrap_to_next_line() @text[@y][@x] = c @attributes[@y][@x] = @a @x += 1 - if @x is @width - @wrap_to_next_line() return set_attribute_bits: (mask, value) -> -- 1.7.10.4