mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Rename Substitution.perform Substitution.execute
This commit is contained in:
@@ -8,5 +8,5 @@ class CommandInterpreter
|
||||
|
||||
eval: (editor, command) ->
|
||||
operation = @parser.parse(command)
|
||||
operation.perform(editor)
|
||||
operation.execute(editor)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ class Substitution
|
||||
@findRegex = new RegExp(@findText)
|
||||
@global = 'g' in @options
|
||||
|
||||
perform: (editor) ->
|
||||
execute: (editor) ->
|
||||
selectedText = editor.getSelectedText()
|
||||
selectionStartIndex = editor.buffer.characterIndexForPosition(editor.getSelection().getBufferRange().start)
|
||||
selectionEndIndex = selectionStartIndex + selectedText.length
|
||||
|
||||
Reference in New Issue
Block a user