Browse Source

gofmt

master
HimbeerserverDE 1 year ago
parent
commit
3121cc6f9a
No known key found for this signature in database
GPG Key ID: 1A651504791E6A8B
  1. 4
      console.go

4
console.go

@ -12,7 +12,7 @@ var consoleInput []rune
type History struct {
lines [][]rune
i int
i int
}
func (h *History) Add(line []rune) {
@ -32,7 +32,7 @@ func (h *History) Add(line []rune) {
func (h *History) Prev(current []rune) []rune {
h.i++
i := len(h.lines)-h.i
i := len(h.lines) - h.i
if i < 0 || i >= len(h.lines) {
h.i--
return current

Loading…
Cancel
Save