소스 검색

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) {