Fix emulator's submit_line()

This commit is contained in:
2026-02-26 18:08:02 +00:00
parent 9d671ad8ef
commit 163811bbc6

2
emu.js
View File

@@ -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);
}