Set LineWrapper.maxLength based on lines width, not editor with.

Because there's a gutter now that doesn't count.
This commit is contained in:
Corey Johnson & Nathan Sobo
2012-03-02 17:09:45 -08:00
parent 277be9df3b
commit 5a4f4955b2
3 changed files with 19 additions and 7 deletions

View File

@@ -219,7 +219,7 @@ class Editor extends View
setMaxLineLength: ->
maxLength =
if @softWrap
Math.floor(@width() / @charWidth)
Math.floor(@lines.width() / @charWidth)
else
Infinity