瀏覽代碼

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

devmil 4 年之前
父節點
當前提交
226f298681
共有 1 個文件被更改,包括 1 次插入0 次删除
  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) {