sort completions
authorthomasv <thomasv@gitorious>
Wed, 27 Feb 2013 11:38:04 +0000 (12:38 +0100)
committerthomasv <thomasv@gitorious>
Wed, 27 Feb 2013 11:38:04 +0000 (12:38 +0100)
lib/qt_console.py

index af3c485..411f151 100644 (file)
@@ -265,6 +265,7 @@ class Console(QtGui.QPlainTextEdit):
             xx = prefix + x
             if xx.startswith(lastword):
                 completions.append(xx)
+        completions.sort()
                 
         if not completions:
             self.hide_completions()