Rename Substitution.perform Substitution.execute

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-03-21 16:33:49 -07:00
parent 12c315ecfd
commit b09bd44ed7
2 changed files with 2 additions and 2 deletions

View File

@@ -8,5 +8,5 @@ class CommandInterpreter
eval: (editor, command) ->
operation = @parser.parse(command)
operation.perform(editor)
operation.execute(editor)

View File

@@ -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