瀏覽代碼

Only do reflow when the main buffer is active

devmil 4 年之前
父節點
當前提交
1ddb793f2c
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      lib/buffer/buffer.dart

+ 4 - 2
lib/buffer/buffer.dart

@@ -525,8 +525,10 @@ class Buffer {
     _cursorX = _cursorX.clamp(0, newWidth - 1);
     _cursorY = _cursorY.clamp(0, newHeight - 1);
 
-    final rf = BufferReflow(this);
-    rf.doReflow(oldWidth, newWidth);
+    if (!terminal.isUsingAltBuffer()) {
+      final rf = BufferReflow(this);
+      rf.doReflow(oldWidth, newWidth);
+    }
   }
 
   BufferLine _newEmptyLine() {