(pos Loc, value []byte)
| 124 | } |
| 125 | |
| 126 | func (b *SharedBuffer) insert(pos Loc, value []byte) { |
| 127 | b.HasSuggestions = false |
| 128 | b.LineArray.insert(pos, value) |
| 129 | b.setModified() |
| 130 | |
| 131 | inslines := bytes.Count(value, []byte{'\n'}) |
| 132 | b.MarkModified(pos.Y, pos.Y+inslines) |
| 133 | } |
| 134 | |
| 135 | func (b *SharedBuffer) remove(start, end Loc) []byte { |
| 136 | b.HasSuggestions = false |