AddCursor adds a new cursor to the list
(c *Cursor)
| 1036 | |
| 1037 | // AddCursor adds a new cursor to the list |
| 1038 | func (b *Buffer) AddCursor(c *Cursor) { |
| 1039 | b.cursors = append(b.cursors, c) |
| 1040 | b.EventHandler.cursors = b.cursors |
| 1041 | b.EventHandler.active = b.curCursor |
| 1042 | b.UpdateCursors() |
| 1043 | } |
| 1044 | |
| 1045 | // SetCurCursor sets the current cursor |
| 1046 | func (b *Buffer) SetCurCursor(n int) { |