diff options
author | Devine Lu Linvega <[email protected]> | 2018-10-19 16:05:38 +1200 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2018-10-19 16:05:38 +1200 |
commit | c7c28dcf38564f4fe880b21788a4910a68676b77 (patch) | |
tree | 8091178620b4f071004e5aa6675a8262351f7eee /desktop/sources/scripts/cursor.js | |
parent | d72636dd8a3dd7c175f2212b9db042b7e627a768 (diff) | |
download | Orca-c7c28dcf38564f4fe880b21788a4910a68676b77.tar.gz Orca-c7c28dcf38564f4fe880b21788a4910a68676b77.zip |
Added save
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) } |