File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,13 @@ public void Initialize(in Size size)
1717 _buffer = new Cell ? [ size . Width , size . Height ] ;
1818 }
1919
20+ public void Clear ( )
21+ {
22+ for ( int i = 0 ; i < _buffer . GetLength ( 0 ) ; i ++ )
23+ for ( int j = 0 ; j < _buffer . GetLength ( 1 ) ; j ++ )
24+ _buffer [ i , j ] = null ;
25+ }
26+
2027 public bool Update ( in Position position , in Cell newCell )
2128 {
2229 ref var cell = ref _buffer [ position . X , position . Y ] ;
Original file line number Diff line number Diff line change 1414 <PackageTags >console, gui, framework</PackageTags >
1515 <PackageRequireLicenseAcceptance >true</PackageRequireLicenseAcceptance >
1616 <Version >1.4.0</Version >
17- <PackageReleaseNotes >1.4.0 - Customizable data grid style
17+ <PackageReleaseNotes >1.4.1 - Fixing the refresh bug on swapping of the ConsoleManager.Content
18+ 1.4.0 - Customizable data grid style
18191.3.0 - Making the ScrollUpKey and the ScrollDownKey configurable in the VerticalScrollPanel
19201.2.2 - Fixing AdjustWindowSize exception when window has 0 height
20211.2.1 - Fixing exceptions on window resizing
Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ private static void Initialize()
113113 var consoleSize = BufferSize ;
114114
115115 Console . Initialize ( ) ;
116+ _buffer . Clear ( ) ;
116117
117118 _freezeLock . Freeze ( ) ;
118119 ContentContext . SetLimits ( consoleSize , consoleSize ) ;
You can’t perform that action at this time.
0 commit comments