mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Always calculate the soft wrap column
This commit is contained in:
@@ -905,10 +905,7 @@ class Editor extends View
|
||||
@setSoftWrap(not @activeEditSession.getSoftWrap())
|
||||
|
||||
calcSoftWrapColumn: ->
|
||||
if @activeEditSession.getSoftWrap()
|
||||
Math.floor(@scrollView.width() / @charWidth)
|
||||
else
|
||||
Infinity
|
||||
Math.floor(@scrollView.width() / @charWidth)
|
||||
|
||||
# Sets the soft wrap column for the editor.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user