aboutsummaryrefslogtreecommitdiffstats
path: root/ui.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2023-07-29 11:19:55 -0230
committerSam Anthony <sam@samanthony.xyz>2023-07-29 11:19:55 -0230
commit008e4021375883610cf1b07e005a4176acadc0de (patch)
tree3148bbf1945c8e0517810ea234e16c498f968eb4 /ui.go
parentc12813975d7529f864199b876bc3ee3b470c1c18 (diff)
downloadpfc-008e4021375883610cf1b07e005a4176acadc0de.zip
trig functions
Diffstat (limited to 'ui.go')
-rw-r--r--ui.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui.go b/ui.go
index 9bf9caa..877f11b 100644
--- a/ui.go
+++ b/ui.go
@@ -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 {