deleteToEnd deletes from the end of a line to the position
(pos Loc)
| 268 | |
| 269 | // deleteToEnd deletes from the end of a line to the position |
| 270 | func (la *LineArray) deleteToEnd(pos Loc) { |
| 271 | la.lines[pos.Y].data = la.lines[pos.Y].data[:pos.X] |
| 272 | } |
| 273 | |
| 274 | // deleteFromStart deletes from the start of a line to the position |
| 275 | func (la *LineArray) deleteFromStart(pos Loc) { |