MCPcopy Create free account
hub / github.com/g3n/engine / CursorLeft

Method CursorLeft

gui/edit.go:132–138  ·  view source on GitHub ↗

CursorLeft moves the edit cursor one character left if possible

()

Source from the content-addressed store, hash-verified

130
131// CursorLeft moves the edit cursor one character left if possible
132func (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
141func (ed *Edit) CursorRight() {

Callers 1

onKeyMethod · 0.95

Calls 1

redrawMethod · 0.95

Tested by

no test coverage detected