mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Rename command to compositCommand in command interpreter
This commit is contained in:
@@ -7,9 +7,9 @@ class CommandInterpreter
|
||||
@parser = PEG.buildParser(fs.read(require.resolve 'command-interpreter/commands.pegjs'))
|
||||
|
||||
eval: (editor, string) ->
|
||||
command = @parser.parse(string)
|
||||
@lastRelativeAddress = command if command.isRelativeAddress()
|
||||
command.execute(editor)
|
||||
compositeCommand = @parser.parse(string)
|
||||
@lastRelativeAddress = compositeCommand if compositeCommand.isRelativeAddress()
|
||||
compositeCommand.execute(editor)
|
||||
|
||||
repeatRelativeAddress: (editor) ->
|
||||
@lastRelativeAddress?.execute(editor)
|
||||
|
||||
Reference in New Issue
Block a user