DeleteEditChar removes the last character from the edit buffer.
()
| 131 | |
| 132 | // DeleteEditChar removes the last character from the edit buffer. |
| 133 | func (s *SettingsOverlay) DeleteEditChar() { |
| 134 | if len(s.editBuffer) > 0 { |
| 135 | runes := []rune(s.editBuffer) |
| 136 | s.editBuffer = string(runes[:len(runes)-1]) |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | // ToggleBool toggles the selected boolean value. |
| 141 | // Returns the key and new value for the caller to act on. |
no outgoing calls