Ver Fonte

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

devmil há 4 anos atrás
pai
commit
226f298681
1 ficheiros alterados com 1 adições e 0 exclusões
  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) {