Always calculate the soft wrap column

This commit is contained in:
Kevin Sawicki
2013-08-22 17:51:02 -07:00
parent 5001c6e84e
commit 0b7262aa62

View File

@@ -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.
#