Fix wrong row due to typo
Signed-off-by: Tom Lebreux <tomlebreux@cock.li>
This commit is contained in:
parent
41212a717e
commit
399d014bff
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ func (term *Terminal) Draw(ctx *ui.Context) {
|
||||||
for _, rect := range term.damage {
|
for _, rect := range term.damage {
|
||||||
for x := rect.StartCol(); x < rect.EndCol() && x < ctx.Width(); x += 1 {
|
for x := rect.StartCol(); x < rect.EndCol() && x < ctx.Width(); x += 1 {
|
||||||
|
|
||||||
for y := rect.StartCol(); y < rect.EndCol() && y < ctx.Height(); y += 1 {
|
for y := rect.StartRow(); y < rect.EndRow() && y < ctx.Height(); y += 1 {
|
||||||
|
|
||||||
coords := coords{x, y}
|
coords := coords{x, y}
|
||||||
if _, ok := visited[coords]; ok {
|
if _, ok := visited[coords]; ok {
|
||||||
|
|
Loading…
Reference in a new issue