CursorLeft moves the edit cursor one character left if possible
()
| 130 | |
| 131 | // CursorLeft moves the edit cursor one character left if possible |
| 132 | func (ed *Edit) CursorLeft() { |
| 133 | |
| 134 | if ed.col > 0 { |
| 135 | ed.col-- |
| 136 | ed.redraw(ed.focus) |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | // CursorRight moves the edit cursor one character right if possible |
| 141 | func (ed *Edit) CursorRight() { |