Skip to content

Conversation

@DabeDotCom
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:

--- term.js__ORIG   2015-09-24 18:33:45.000000000 -0400
+++ term.js 2015-09-24 18:33:53.000000000 -0400
@@ -2771,8 +2771,8 @@
       }
     }
   }
-  this.setupStops(j);
   this.cols = 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.

1 participant