MCPcopy
hub / github.com/mathaou/termdbms / deleteBeforeCursor

Method deleteBeforeCursor

tuiutil/textinput.go:392–396  ·  view source on GitHub ↗

deleteBeforeCursor deletes all text before the cursor. Returns whether or not the cursor blink should be reset.

()

Source from the content-addressed store, hash-verified

390// deleteBeforeCursor deletes all text before the cursor. Returns whether or
391// not the cursor blink should be reset.
392func (m *TextInputModel) deleteBeforeCursor() bool {
393 m.value = m.value[m.pos:]
394 m.Offset = 0
395 return m.setCursor(0)
396}
397
398// deleteAfterCursor deletes all text after the cursor. Returns whether or not
399// the cursor blink should be reset. If input is masked delete everything after

Callers 2

deleteWordLeftMethod · 0.95
UpdateMethod · 0.95

Calls 1

setCursorMethod · 0.95

Tested by

no test coverage detected