cursorSelect updates selection based on cursor movements, given starting cursor position and ed.CursorPos is current
(org lexer.Pos)
| 181 | // cursorSelect updates selection based on cursor movements, given starting |
| 182 | // cursor position and ed.CursorPos is current |
| 183 | func (ed *Editor) cursorSelect(org lexer.Pos) { |
| 184 | if !ed.selectMode { |
| 185 | return |
| 186 | } |
| 187 | ed.selectRegionUpdate(ed.CursorPos) |
| 188 | } |
| 189 | |
| 190 | // cursorForward moves the cursor forward |
| 191 | func (ed *Editor) cursorForward(steps int) { |
no test coverage detected