[Monodevelop-patches-list] r2193 - trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Jan 30 16:13:24 EST 2005


Author: jluke
Date: 2005-01-30 16:13:24 -0500 (Sun, 30 Jan 2005)
New Revision: 2193

Modified:
   trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
Log:
small fix


Modified: trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs	2005-01-30 21:04:11 UTC (rev 2192)
+++ trunk/MonoDevelop/Core/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorView.cs	2005-01-30 21:13:24 UTC (rev 2193)
@@ -620,8 +620,10 @@
 			TextIter end = buf.GetIterAtLine (start.Line);
 			end.LineOffset = start.LineOffset + 1;
 			string text = buf.GetText (start, end, true);
+			// 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]);
+				return System.Char.IsWhiteSpace (text[0]) || text[0] == '/';
 			return true;
 		}
 #endregion




More information about the Monodevelop-patches-list mailing list