diff options
Diffstat (limited to 'desktop/sources/scripts/cursor.js')
-rw-r--r-- | desktop/sources/scripts/cursor.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/sources/scripts/cursor.js b/desktop/sources/scripts/cursor.js index 0bc5d1e..fd3f1aa 100644 --- a/desktop/sources/scripts/cursor.js +++ b/desktop/sources/scripts/cursor.js @@ -54,6 +54,10 @@ function Cursor (terminal) { } this.erase = function (g) { + if (this.w === 1 && this.h === 1 && pico.glyphAt(this.x, this.y) === '.') { + this.move(-1, 0) + return + } this.terminal.log(`Erase ${this._position()}`) this.terminal.pico.removeBlock(this.x, this.y, this.w, this.h) } |