Procházet zdrojové kódy

replace floor() with ~/

xuty před 4 roky
rodič
revize
e8c0fa7592
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) {