   setEditorWidthInChars: (editorWidthInChars) ->
     previousWidthInChars = @editorWidthInChars
     @editorWidthInChars = editorWidthInChars
-    if editorWidthInChars isnt previousWidthInChars and @getSoftWrap()
+    if editorWidthInChars isnt previousWidthInChars and @softWrap
       @updateWrappedScreenLines()
 
   getSoftWrapColumn: ->

  # visible - A {Boolean} indicating of the tokenized buffer is shown
  setVisible: (visible) -> @tokenizedBuffer.setVisible(visible)

  setSoftWrap: (@softWrap) -> @softWrap

  getSoftWrap: -> @softWrap

  # Set the number of characters that fit horizontally in the editor.

        @updateWrappedScreenLines()

    @observeConfig 'editor.preferredLineLength', callNow: false, =>
      @updateWrappedScreenLines() if @softWrap and atom.config.get('editor.softWrapAtPreferredLineLength')

    @observeConfig 'editor.softWrapAtPreferredLineLength', callNow: false, =>
      @updateWrappedScreenLines() if @softWrap

  copy: ->
    newDisplayBuffer = atom.create(new DisplayBuffer({@buffer, tabLength: @getTabLength()}))
