Parcourir la source

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

devmil il y a 4 ans
Parent
commit
226f298681
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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) {