소스 검색

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) {