lib/sup/modes/text_mode.rb in sup-0.15.0 vs lib/sup/modes/text_mode.rb in sup-0.15.1
- old
+ new
@@ -44,10 +44,10 @@
end
end
def << line
@lines = [0] if @text.empty?
- @text << line
+ @text << line.fix_encoding!
@lines << @text.length
if buffer
ensure_mode_validity
buffer.mark_dirty
end