changeset 312 | eab54dae434d |
parent 308 | bf1facfd1d36 |
child 342 | 25e093542b40 |
--- 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))