Explorar o código

fix double width cell handling during reflow wider

devmil %!s(int64=4) %!d(string=hai) anos
pai
achega
a5e12d5f99
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      lib/buffer/reflow_strategy_wider.dart

+ 1 - 3
lib/buffer/reflow_strategy_wider.dart

@@ -41,9 +41,7 @@ class ReflowStrategyWider extends ReflowStrategy {
         // when we are about to copy a double width character
         // to the end of the line then we just ignore it as the target width
         // would be too much
-        if (moveCount >= 2 &&
-            nextLine.cellGetWidth(moveCount - 1) == 2 &&
-            nextLine.cellGetContent(moveCount - 2) == 0) {
+        if (nextLine.cellGetWidth(moveCount - 1) == 2) {
           moveCount -= 1;
         }
         line.copyCellsFrom(nextLine, 0, copyDestIndex, moveCount);