diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2023-07-27 11:53:19 -0230 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2023-07-27 11:53:19 -0230 |
| commit | e89fd14004291f65998b8fa6b5febc2d2fdc52d6 (patch) | |
| tree | 40dda188656c8505ad6fa9aa30ebd8a4cab34e06 /ui.go | |
| parent | 1743ab7e7f9a38acff10fb6593dbc2e2f8c6f7ab (diff) | |
| download | pfc-e89fd14004291f65998b8fa6b5febc2d2fdc52d6.zip | |
addition operator
Diffstat (limited to 'ui.go')
| -rw-r--r-- | ui.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -37,6 +37,8 @@ func (ui UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg.String() { case "ctrl+c", "Q": return ui, tea.Quit + case "+": + ui.calc.add() case "backspace": if len(ui.calc.buffer) > 0 { ui.calc.buffer = ui.calc.buffer[:len(ui.calc.buffer)-1] |