# HG changeset patch # User lbessard # Date 1235574379 -3600 # Node ID eab54dae434ddf34b6e68ccc2b9277b9374b00e9 # Parent 3e22e53878b800fb379141e803f529f67e884035 Adding filted in Auto-completion of TextViewer diff -r 3e22e53878b8 -r eab54dae434d TextViewer.py --- a/TextViewer.py Wed Feb 25 16:05:45 2009 +0100 +++ b/TextViewer.py Wed Feb 25 16:06:19 2009 +0100 @@ -497,6 +497,8 @@ else: kw = self.Keywords + self.Variables.keys() + self.Functions if len(kw) > 0: + if len(words[-1]) > 0: + kw = [keyword for keyword in kw if keyword.startswith(words[-1])] kw.sort() self.AutoCompSetIgnoreCase(True) self.AutoCompShow(len(words[-1]), " ".join(kw))