Преглед на файлове

implement BufferLine.clear

xuty преди 4 години
родител
ревизия
b0d199a8a9
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      lib/buffer/buffer_line.dart

+ 3 - 3
lib/buffer/buffer_line.dart

@@ -53,15 +53,15 @@ class BufferLine {
   }
 
   void insert(int index) {
-    // _cells.insert(index, cell);
+    insertN(index, 1);
   }
 
   void insertN(int index, int count) {
-    // _cells.insert(index, cell);
+    // TODO: implement insertN()
   }
 
   void clear() {
-    // _cells.clear();
+    _cells.buffer.asInt64List().clear();
   }
 
   void erase(Cursor cursor, int start, int end) {