Browse Source

Only do reflow when the main buffer is active

devmil 4 years ago
parent
commit
1ddb793f2c
1 changed files with 4 additions and 2 deletions
  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() {