Listen for autocomplete:select on Editor

This commit is contained in:
Corey Johnson
2012-04-18 11:34:46 -07:00
parent bd964d8bc0
commit 82191a80cb
2 changed files with 31 additions and 20 deletions

View File

@@ -28,8 +28,9 @@ class Autocomplete extends View
handleEvents: ->
@editor.on 'buffer-path-change', => @setCurrentBuffer(@editor.buffer)
@editor.on 'autocomplete:toggle', => @toggle()
@editor.on 'autocomplete:select', => @select()
@on 'autocomplete:cancel', => @cancel()
@on 'autocomplete:select', => @select()
@on 'move-up', => @previousMatch()
@on 'move-down', => @nextMatch()