Browse files

Revert "Fixed Win7 completer bug"

This reverts commit 3072590.
  • Loading branch information...
1 parent 3072590 commit 4b1db469fc968dd673ea1fb628780bbc1684d861 @t101jv t101jv committed Jul 16, 2012
Showing with 26 additions and 26 deletions.
  1. +26 −26 lib/plugins/completer.coffee
View
52 lib/plugins/completer.coffee
@@ -1,26 +1,26 @@
-
-###
-
-Completer plugin
-================
-
-Provides tab completion. Options passed during creation are:
-
-- `shell` , (required) A reference to your shell application.
-
-###
-module.exports = (settings) ->
- # Validation
- throw new Error 'No shell provided' if not settings.shell
- shell = settings.shell
- # Plug completer to interface
- return unless shell.isShell
- shell.interface().completer = (text, cb) ->
- suggestions = []
- routes = shell.routes
- for route in routes
- command = route.command
- if command.substr(0, text.length) is text
- suggestions.push command
- cb(false, [suggestions, text])
- null
+
+###
+
+Completer plugin
+================
+
+Provides tab completion. Options passed during creation are:
+
+- `shell` , (required) A reference to your shell application.
+
+###
+module.exports = (settings) ->
+ # Validation
+ throw new Error 'No shell provided' if not settings.shell
+ shell = settings.shell
+ # Plug completer to interface
+ return unless shell.isShell
+ shell.interface().completer = (text) ->
+ suggestions = []
+ routes = shell.routes
+ for route in routes
+ command = route.command
+ if command.substr(0, text.length) is text
+ suggestions.push command
+ [suggestions, text]
+ null

0 comments on commit 4b1db46

Please sign in to comment.