diff --git a/emu.js b/emu.js index 9833078..9f37d41 100644 --- a/emu.js +++ b/emu.js @@ -163,7 +163,7 @@ class Emulator { submit_line() { let line = ''; let cell = this.range.start; - while (cell.x != this.range.end.x && cell.y != this.range.y) { + while (cell.x != this.range.end.x || cell.y != this.range.end.y) { line += this.grid[cell.y][cell.x]; cell = this.next_cell(cell); }