diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2023-07-29 11:19:55 -0230 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2023-07-29 11:19:55 -0230 |
| commit | 008e4021375883610cf1b07e005a4176acadc0de (patch) | |
| tree | 3148bbf1945c8e0517810ea234e16c498f968eb4 /ui.go | |
| parent | c12813975d7529f864199b876bc3ee3b470c1c18 (diff) | |
| download | pfc-008e4021375883610cf1b07e005a4176acadc0de.zip | |
trig functions
Diffstat (limited to 'ui.go')
| -rw-r--r-- | ui.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -56,7 +56,7 @@ func (ui UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } case "enter": if fn := parseFunction(ui.calc.buf); fn != nil { - fn(ui.calc.stack) + fn(ui.calc) } else if con := parseConstant(ui.calc.buf); con != nil { ui.calc.stack.push(*con) } else if f, err := strconv.ParseFloat(ui.calc.buf, 64); err == nil { |