Explorar o código

implement BufferLine.clear

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