Explorar el Código

replace floor() with ~/

xuty hace 4 años
padre
commit
e8c0fa7592
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {