소스 검색

fix double width cell handling during reflow wider

devmil 4 년 전
부모
커밋
a5e12d5f99
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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);