aboutsummaryrefslogtreecommitdiffstats
path: root/ui.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2023-07-28 20:52:03 -0230
committerSam Anthony <sam@samanthony.xyz>2023-07-28 20:52:03 -0230
commit9dae90cfdc1a4cb5f42e9a533a2277a3904b629f (patch)
tree2dbc7ccedd6567c8e1c03479056cdfb0073e1a58 /ui.go
parent3516ab494570f077df967bfe1222acc0dfcdf5da (diff)
downloadpfc-9dae90cfdc1a4cb5f42e9a533a2277a3904b629f.zip
exponentiation operator
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 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)
}