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.
()
| 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. |
| 401 | func (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. |
no test coverage detected