Fix emulator's submit_line()
This commit is contained in:
2
emu.js
2
emu.js
@@ -163,7 +163,7 @@ class Emulator {
|
|||||||
submit_line() {
|
submit_line() {
|
||||||
let line = '';
|
let line = '';
|
||||||
let cell = this.range.start;
|
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];
|
line += this.grid[cell.y][cell.x];
|
||||||
cell = this.next_cell(cell);
|
cell = this.next_cell(cell);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user