The purpose of SetUnsentText(), GetUnsentText() is to Capture what the user is typing so that when we redraw the "prompt" or status bar, we can redraw what they were in the middle of typing. I don't like the idea of capturing it every time they hit a key though There is probably a better way.
(t string, suggest string)
| 522 | // I don't like the idea of capturing it every time they hit a key though |
| 523 | // There is probably a better way. |
| 524 | func (u *UserRecord) SetUnsentText(t string, suggest string) { |
| 525 | |
| 526 | u.unsentText = t |
| 527 | u.suggestText = suggest |
| 528 | } |
| 529 | |
| 530 | func (u *UserRecord) GetUnsentText() (unsent string, suggestion string) { |
| 531 |
no outgoing calls
no test coverage detected