Explorar o código

Fixes alternative buffer (clear removed all lines but the initial behaviour changed to having $viewHeight lines available

devmil %!s(int64=4) %!d(string=hai) anos
pai
achega
226f298681
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      lib/buffer/buffer.dart

+ 1 - 0
lib/buffer/buffer.dart

@@ -459,6 +459,7 @@ class Buffer {
 
   void clear() {
     lines.clear();
+    lines.addAll(List.generate(terminal.viewHeight, (_) => BufferLine()));
   }
 
   void insertBlankCharacters(int count) {