       return null unless obj?
     obj[char]
 
+  # Private:
   setCharacterWidthCache: (scopes, char, val) ->
     scopes ?= NoScope
     obj = EditorView.characterWidthCache

    @setWidthInChars()
    @editor.setSoftWrap(not @editor.getSoftWrap())

  calculateWidthInChars: ->
    Math.floor(@scrollView.width() / @charWidth)

  calculateHeightInLines: ->
    Math.ceil($(window).height() / @lineHeight)


      obj = obj[scope]
    obj[char] = val

  # Private:
  clearCharacterWidthCache: ->
    EditorView.characterWidthCache = {}

