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:
authorAlex Rønne Petersen <xtzgzorex@gmail.com>2011-11-25 21:51:38 +0400
committerAlex Rønne Petersen <xtzgzorex@gmail.com>2011-11-25 21:51:38 +0400
commit41eb50f540d83e9b275f6e0d2086087d4b9d64fb (patch)
tree7b4b4430de4eac1d7de1319a94943b07e88a8c09
parent3772a5007e6df28984eccb865713d385a2ce1abf (diff)
parentae589a43f7d65dd4ee0e3b409ed408c966d3fbc4 (diff)
Merge pull request #132 from rohdef/master
Made some basic autocompletion work again for Python
-rw-r--r--extras/PyBinding/PyBinding/PyBinding.Gui/PythonEditorCompletion.cs2
-rwxr-xr-xextras/PyBinding/PyBinding/Resources/completion.py2
2 files changed, 2 insertions, 2 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
diff --git a/extras/PyBinding/PyBinding/Resources/completion.py b/extras/PyBinding/PyBinding/Resources/completion.py
index 4ca99755a6..3faaffe84b 100755
--- a/extras/PyBinding/PyBinding/Resources/completion.py
+++ b/extras/PyBinding/PyBinding/Resources/completion.py
@@ -265,7 +265,7 @@ def parse(content, outStream):
except ImportError:
pass
- visitor.tree.write(file = outStream)
+ visitor.tree.write(outStream)
except SyntaxError, ex:
lineno = hasattr(ex, 'lineno') and ex.lineno or 0
offset = hasattr(ex, 'offset') and ex.offset or 0