File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2024 Untemi
3+ Copyright (c) 2024-2025 Untemi
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ type model struct {
2121
2222 done bool
2323 fistChar bool
24- prevKey string
24+ prevKey string
2525}
2626
2727type row struct {
Original file line number Diff line number Diff line change @@ -69,15 +69,14 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
6969
7070 case tea .KeyEnter :
7171 // new Sentence creation and States reset
72- if m .done || m .prevKey == "tab" {
72+ if m .done || m .prevKey == "tab" {
7373 m .sentence = generator .Sentence ()
7474 m .runeCount = utf8 .RuneCountInString (m .sentence )
7575 m .done = false
7676 m .fistChar = true
7777 m .prevKey = ""
7878 }
7979
80-
8180 case tea .KeyEscape , tea .KeyCtrlC :
8281 // bay bay
8382 return m , tea .Quit
@@ -116,8 +115,6 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
116115 m .termHeight = msg .Height
117116 }
118117
119-
120-
121118 return m , nil
122119}
123120
You can’t perform that action at this time.
0 commit comments