[Monodevelop-patches-list] r2766 - in trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor: . Gui
Lluis Sanchez <lluis@ximian.com>
lluis at mono-cvs.ximian.com
Fri Aug 19 11:58:04 EDT 2005
Author: lluis
Date: 2005-08-19 11:58:04 -0400 (Fri, 19 Aug 2005)
New Revision: 2766
Modified:
trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
Log:
2005-08-19 Lluis Sanchez Gual <lluis at novell.com>
* Gui/SourceEditorView.cs: Display the completion window even if
the char at the cursor is not a whitespace.
Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2005-08-19 15:56:13 UTC (rev 2765)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2005-08-19 15:58:04 UTC (rev 2766)
@@ -1,3 +1,8 @@
+2005-08-19 Lluis Sanchez Gual <lluis at novell.com>
+
+ * Gui/SourceEditorView.cs: Display the completion window even if
+ the char at the cursor is not a whitespace.
+
2005-08-12 Lluis Sanchez Gual <lluis at novell.com>
* MonoDevelopEditor.addin.xml:
Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs 2005-08-19 15:56:13 UTC (rev 2765)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs 2005-08-19 15:58:04 UTC (rev 2766)
@@ -815,9 +815,15 @@
// if it is not whitespace or the start of a comment
// we disable completion except for by ctl+space
if (text.Length == 1)
- return System.Char.IsWhiteSpace (text[0]) || text[0] == '/';
+ return IsSeparator (text[0]);
return true;
}
+
+ bool IsSeparator (char c)
+ {
+ // FIXME: this is language specific.
+ return !System.Char.IsLetterOrDigit (c) && c != '_';
+ }
#endregion
}
}
More information about the Monodevelop-patches-list
mailing list