mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 23:48:05 +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.
|
# Retrieves the current tab length.
|
||||||
#
|
#
|
||||||
# Returns a {Number}.
|
# Returns a {Number}.
|
||||||
getTabLength: (scopeDescriptor) ->
|
getTabLength: ->
|
||||||
@tokenizedBuffer.getTabLength(scopeDescriptor)
|
@tokenizedBuffer.getTabLength()
|
||||||
|
|
||||||
# Specifies the tab length.
|
# Specifies the tab length.
|
||||||
#
|
#
|
||||||
|
@ -2185,10 +2185,8 @@ class TextEditor extends Model
|
|||||||
|
|
||||||
# Essential: Get the on-screen length of tab characters.
|
# Essential: Get the on-screen length of tab characters.
|
||||||
#
|
#
|
||||||
# * `scopeDescriptor` (optional) {Array} of {String}s.
|
|
||||||
#
|
|
||||||
# Returns a {Number}.
|
# Returns a {Number}.
|
||||||
getTabLength: (scopeDescriptor) -> @displayBuffer.getTabLength(scopeDescriptor)
|
getTabLength: -> @displayBuffer.getTabLength()
|
||||||
|
|
||||||
# Essential: Set the on-screen length of tab characters. Setting this to a
|
# Essential: Set the on-screen length of tab characters. Setting this to a
|
||||||
# {Number} This will override the `editor.tabLength` setting.
|
# {Number} This will override the `editor.tabLength` setting.
|
||||||
|
@ -117,8 +117,8 @@ class TokenizedBuffer extends Model
|
|||||||
setVisible: (@visible) ->
|
setVisible: (@visible) ->
|
||||||
@tokenizeInBackground() if @visible
|
@tokenizeInBackground() if @visible
|
||||||
|
|
||||||
getTabLength: (scopeDescriptor) ->
|
getTabLength: ->
|
||||||
@tabLength ? atom.config.get(scopeDescriptor ? @grammarScopeDescriptor, 'editor.tabLength')
|
@tabLength ? atom.config.get(@grammarScopeDescriptor, 'editor.tabLength')
|
||||||
|
|
||||||
setTabLength: (@tabLength) ->
|
setTabLength: (@tabLength) ->
|
||||||
@retokenizeLines()
|
@retokenizeLines()
|
||||||
|
Loading…
Reference in New Issue
Block a user