mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-08 16:19:17 +03:00
Remove scopeDescriptor from getTabLength
This commit is contained in:
parent
26524e87b0
commit
c315631efd
@ -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.
|
||||
#
|
||||
|
@ -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.
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user