Remove the redundant guard on the event loop
This commit is contained in:
parent
6a3af2a0ac
commit
af92330682
|
@ -120,10 +120,7 @@ func main() {
|
||||||
upperBound := min(ymax-3, len(*input))
|
upperBound := min(ymax-3, len(*input))
|
||||||
|
|
||||||
// Event loop
|
// Event loop
|
||||||
for {
|
for !done {
|
||||||
if done {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
s.Clear()
|
s.Clear()
|
||||||
Render(s, input, lowerBound, upperBound, currentLine)
|
Render(s, input, lowerBound, upperBound, currentLine)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue