From 9dae90cfdc1a4cb5f42e9a533a2277a3904b629f Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Fri, 28 Jul 2023 20:52:03 -0230 Subject: exponentiation operator --- ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui.go') diff --git a/ui.go b/ui.go index 5996a9c..aedaa6c 100644 --- a/ui.go +++ b/ui.go @@ -37,7 +37,7 @@ func (ui UI) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch msg.String() { case "ctrl+c", "Q": return ui, tea.Quit - case "+", "-", "*", "/", "%": + case "+", "-", "*", "/", "%", "^": if err := ui.calc.performOp(msg.String()[0]); err != nil { panic(err) } -- cgit v1.2.3