MCPcopy Index your code
hub / github.com/mathaou/termdbms / deleteAfterCursor

Method deleteAfterCursor

tuiutil/textinput.go:401–404  ·  view source on GitHub ↗

deleteAfterCursor deletes all text after the cursor. Returns whether or not the cursor blink should be reset. If input is masked delete everything after the cursor so as not to reveal word breaks in the masked input.

()

Source from the content-addressed store, hash-verified

399// the cursor blink should be reset. If input is masked delete everything after
400// the cursor so as not to reveal word breaks in the masked input.
401func (m *TextInputModel) deleteAfterCursor() bool {
402 m.value = m.value[:m.pos]
403 return m.setCursor(len(m.value))
404}
405
406// deleteWordLeft deletes the word left to the cursor. Returns whether or not
407// the cursor blink should be reset.

Callers 2

deleteWordRightMethod · 0.95
UpdateMethod · 0.95

Calls 1

setCursorMethod · 0.95

Tested by

no test coverage detected