Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRohde Fischer <rohdef@rohdef.dk>2011-11-25 21:01:07 +0400
committerRohde Fischer <rohdef@rohdef.dk>2011-11-25 21:01:07 +0400
commitb6e541c4f201619d0d51fd5a40c6e25cd5a52604 (patch)
treebec8fc74d802a062f882afa6922c42448d78ed2e
parent3772a5007e6df28984eccb865713d385a2ce1abf (diff)
Fixed self-dot completion bug
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorCompletion.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorCompletion.cs b/extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorCompletion.cs
index b0422d02b4..512fe01344 100644
--- a/extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorCompletion.cs
+++ b/extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorCompletion.cs
@@ -114,7 +114,7 @@ namespace PyBinding.Gui
}
// "self."
- if (document.Module != null && triggerWord.Equals ("self.")) {
+ if (document.Module != null && triggerWord == "self" && completionChar == '.') {
var klass = GetClass (document.Module, completionContext.TriggerLine);
if (klass == null)
return null; // nothing to complete, self not in a class