mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
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:
@@ -219,7 +219,7 @@ class Editor extends View
|
||||
setMaxLineLength: ->
|
||||
maxLength =
|
||||
if @softWrap
|
||||
Math.floor(@width() / @charWidth)
|
||||
Math.floor(@lines.width() / @charWidth)
|
||||
else
|
||||
Infinity
|
||||
|
||||
|
||||
Reference in New Issue
Block a user