Browse Source

[2254] remove 'argument' and 'identifier' from tab hints

These are needed to work with the way bindctl originally handled commands, but should not appear in normal tab-completion
Jelte Jansen 12 years ago
parent
commit
1ed45f9349
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/bin/bindctl/bindcmd.py

+ 5 - 0
src/bin/bindctl/bindcmd.py

@@ -518,8 +518,13 @@ class BindCmdInterpreter(Cmd):
             except BindCtlException:
                 hints = []
 
+            # there are a couple of 'standard' names that are usable, but
+            # should not be included in direct tab-completion
+            hints = [ h for h in hints if h not in [ 'argument', 'identifier']]
+
             self.hint = hints
 
+
         if state < len(self.hint):
             return self.hint[state]
         else: