File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # v2.0.3
2+ - Improve whitespace handling more
3+
14# v2.0.2
25- Improve whitespace handling
36
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class Screen
1212
1313 def initialize ( initial_style :)
1414 @cursor = Cursor . new
15- @screen = [ ]
15+ @screen = [ Row . new ( newline_style : initial_style ) ]
1616 @current_style = @initial_style = initial_style
1717 end
1818
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33module TTYString
4- VERSION = '2.0.2 '
4+ VERSION = '2.0.3 '
55end
Original file line number Diff line number Diff line change 479479 )
480480 end
481481
482+ it 'puts the newline in the right place when scrolling' do
483+ expect ( "\033 [1;41mcat\n \n \n \033 [0m\033 [3T" ) . to render_with_style_as (
484+ "\n \n \n \e [1;41mcat\e [0m"
485+ )
486+ end
487+
482488 it 'fills clears with styled spaces' do
483489 expect ( "abcd\033 [2D\033 [41m\033 [1K\033 [0m" ) . to render_with_style_as (
484490 "\e [41m \e [0md"
You can’t perform that action at this time.
0 commit comments