Explorar o código

replace floor() with ~/

xuty %!s(int64=4) %!d(string=hai) anos
pai
achega
e8c0fa7592
Modificáronse 1 ficheiros con 1 adicións e 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) {