mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Remove unnecessary unsubscribe from buffer in autocomplete
It no longer subscribes to the buffer, so unsubscribe isn't needed.
This commit is contained in:
@@ -31,7 +31,6 @@ class Autocomplete extends SelectList
|
||||
|
||||
handleEvents: ->
|
||||
@editor.on 'editor-path-change', => @setCurrentBuffer(@editor.getBuffer())
|
||||
@editor.on 'before-remove', => @currentBuffer?.off '.autocomplete'
|
||||
@editor.command 'autocomplete:attach', => @attach()
|
||||
|
||||
@miniEditor.preempt 'textInput', (e) =>
|
||||
|
||||
Reference in New Issue
Block a user