aboutsummaryrefslogtreecommitdiffstats
path: root/ui.go
diff options
context:
space:
mode:
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 {