ソースを参照

replace floor() with ~/

xuty 4 年 前
コミット
e8c0fa7592
1 ファイル変更1 行追加1 行削除
  1. 1 1
      lib/buffer/buffer_line.dart

+ 1 - 1
lib/buffer/buffer_line.dart

@@ -85,7 +85,7 @@ class BufferLine {
   }
 
   void clear() {
-    removeRange(0, (_cells.lengthInBytes / _cellSize).floor());
+    removeRange(0, _cells.lengthInBytes ~/ _cellSize);
   }
 
   void erase(Cursor cursor, int start, int end) {