]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Fix more references to `buffer.x`
authorParis Kasidiaris <paris@sourcelair.com>
Sun, 18 Jun 2017 18:15:08 +0000 (21:15 +0300)
committerParis Kasidiaris <pariskasidiaris@gmail.com>
Sun, 16 Jul 2017 00:47:15 +0000 (03:47 +0300)
src/xterm.js

index 55c095d4b989ec40dcede31f58be2e551720bb33..5d552fc9da9bf7bf53abb9a8583e1f6cf13951a9 100644 (file)
@@ -2079,7 +2079,7 @@ Terminal.prototype.setupStops = function(i) {
  * @param {number} x The position to move the cursor to the previous tab stop.
  */
 Terminal.prototype.prevStop = function(x) {
-  if (x == null) x = this.x;
+  if (x == null) x = this.buffer.x;
   while (!this.tabs[--x] && x > 0);
   return x >= this.cols
     ? this.cols - 1
@@ -2092,7 +2092,7 @@ Terminal.prototype.prevStop = function(x) {
  * @param {number} x The position to move the cursor one tab stop forward.
  */
 Terminal.prototype.nextStop = function(x) {
-  if (x == null) x = this.x;
+  if (x == null) x = this.buffer.x;
   while (!this.tabs[++x] && x < this.cols);
   return x >= this.cols
     ? this.cols - 1
@@ -2268,7 +2268,7 @@ Terminal.prototype.index = function() {
   }
   // If the end of the line is hit, prevent this action from wrapping around to the next line.
   if (this.buffer.x >= this.cols) {
-    this.x--;
+    this.buffer.x--;
   }
 };
 
@@ -2314,7 +2314,7 @@ Terminal.prototype.reset = function() {
  * ESC H Tab Set (HTS is 0x88).
  */
 Terminal.prototype.tabSet = function() {
-  this.tabs[this.x] = true;
+  this.tabs[this.buffer.x] = true;
 };
 
 /**