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 115df33..bd39eaf 100644
--- a/ui.go
+++ b/ui.go
@@ -63,7 +63,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)
+ fn(&ui.calc)
} else if v, err := ui.calc.parseBuffer(); err == nil {
ui.calc.stack.push(v)
}