UpdateCursors updates all the cursors indices
()
| 1099 | |
| 1100 | // UpdateCursors updates all the cursors indices |
| 1101 | func (b *Buffer) UpdateCursors() { |
| 1102 | b.EventHandler.cursors = b.cursors |
| 1103 | b.EventHandler.active = b.curCursor |
| 1104 | for i, c := range b.cursors { |
| 1105 | c.Num = i |
| 1106 | } |
| 1107 | } |
| 1108 | |
| 1109 | func (b *Buffer) RemoveCursor(i int) { |
| 1110 | copy(b.cursors[i:], b.cursors[i+1:]) |
no outgoing calls
no test coverage detected