Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix weird wrapping with multiple tab stops (^I) #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ParabonDabe
Copy link

Problem

Per https://github.com/f/atom-term2/issues/34

Image of Broken Word Wrap

Solution

term.js::resize() was calling setupStops() before updating this.cols, but setupStops() uses the value of this.cols to know how many tabStops to create:

--- a/src/term.js
+++ b/src/term.js
@@ -2948,9 +2948,9 @@ Terminal.prototype.resize = function(x, y) {
       }
     }
   }
-  this.setupStops(j);
   this.cols = x;
   this.columns = x;
+  this.setupStops(j);

   // resize rows
   j = this.rows;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants