GotoLoc puts the cursor at the given cursor's location and gives the current cursor its selection too
(l Loc)
| 75 | // GotoLoc puts the cursor at the given cursor's location and gives |
| 76 | // the current cursor its selection too |
| 77 | func (c *Cursor) GotoLoc(l Loc) { |
| 78 | c.X, c.Y = l.X, l.Y |
| 79 | c.StoreVisualX() |
| 80 | } |
| 81 | |
| 82 | // GetVisualX returns the x value of the cursor in visual spaces |
| 83 | func (c *Cursor) GetVisualX(wrap bool) int { |
no test coverage detected