Skip to content

Commit a0d3ee6

Browse files
committed
LICENSE update and more ?
1 parent 885e149 commit a0d3ee6

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Untemi
3+
Copyright (c) 2024-2025 Untemi
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

data.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type model struct {
2121

2222
done bool
2323
fistChar bool
24-
prevKey string
24+
prevKey string
2525
}
2626

2727
type row struct {

main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)