We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0db5c47 commit d495c2dCopy full SHA for d495c2d
src/propterm.js
@@ -334,17 +334,14 @@ class PropTerm {
334
this.buffer.textArray[this.cursor.y] = '';
335
}
336
337
- if (this.cursor.x < 0) {
+ if (this.cursor.x < 0 && this.cursor.y > 0) {
338
this.cursor.y--;
339
this.cursor.x = this.buffer.textArray[this.cursor.y].length;
340
if (this.cursor.x > this.size.charactersWide - 1) {
341
this.cursor.x = this.size.charactersWide - 1;
342
this.buffer.textArray[this.cursor.y] = this.buffer.textArray[this.cursor.y].substr(0, this.cursor.x);
343
344
- }
345
-
346
- if (this.cursor.y < 0) {
347
- this.cursor.y = 0;
+ } else if (this.cursor.x < 0) {
348
this.cursor.x = 0;
349
350
0 commit comments