Remove scopeDescriptor from getTabLength

This commit is contained in:
Ben Ogle 2014-10-07 17:30:57 -07:00
parent 26524e87b0
commit c315631efd
3 changed files with 5 additions and 7 deletions

View File

@ -405,8 +405,8 @@ class DisplayBuffer extends Model
# Retrieves the current tab length.
#
# Returns a {Number}.
getTabLength: (scopeDescriptor) ->
@tokenizedBuffer.getTabLength(scopeDescriptor)
getTabLength: ->
@tokenizedBuffer.getTabLength()
# Specifies the tab length.
#

View File

@ -2185,10 +2185,8 @@ class TextEditor extends Model
# Essential: Get the on-screen length of tab characters.
#
# * `scopeDescriptor` (optional) {Array} of {String}s.
#
# Returns a {Number}.
getTabLength: (scopeDescriptor) -> @displayBuffer.getTabLength(scopeDescriptor)
getTabLength: -> @displayBuffer.getTabLength()
# Essential: Set the on-screen length of tab characters. Setting this to a
# {Number} This will override the `editor.tabLength` setting.

View File

@ -117,8 +117,8 @@ class TokenizedBuffer extends Model
setVisible: (@visible) ->
@tokenizeInBackground() if @visible
getTabLength: (scopeDescriptor) ->
@tabLength ? atom.config.get(scopeDescriptor ? @grammarScopeDescriptor, 'editor.tabLength')
getTabLength: ->
@tabLength ? atom.config.get(@grammarScopeDescriptor, 'editor.tabLength')
setTabLength: (@tabLength) ->
@retokenizeLines()