Stefan Scherfke avatar Stefan Scherfke committed 232f5ab

Fixed completion for pdb.

Comments (0)

Files changed (2)

-from PdbTextMateSupport import preloop, precmd
-pdb.Pdb.preloop = preloop
-pdb.Pdb.precmd = precmd
-
-import sys
+import os, sys
 sys.path.insert(0, os.getenv("HOME") + "/.python/")
-import rlcompleter_ng
-pdb.Pdb.complete = rlcompleter_ng.Completer(locals()).complete
+import util as _util
+pdb.Pdb.complete = _util.Completer(locals()).complete
+del _util
     <http://codespeak.net/svn/user/antocuni/hack/rlcompleter_ng.py>`_
 
     """
-    def __init__(self):
-        rlcompleter.Completer.__init__(self)
+    def __init__(self, *args, **kwargs):
+        rlcompleter.Completer.__init__(self, *args, **kwargs)
 
     def complete(self, text, state):
         """
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.