[Monodevelop-patches-list] r1241 - in trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor: . CodeCompletion

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Thu Mar 25 15:20:56 EST 2004


Author: tberman
Date: 2004-03-25 15:20:56 -0500 (Thu, 25 Mar 2004)
New Revision: 1241

Modified:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs
Log:
tiny code completion bugfix wrt selection


Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2004-03-25 20:16:28 UTC (rev 1240)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog	2004-03-25 20:20:56 UTC (rev 1241)
@@ -1,4 +1,9 @@
 2004-03-25  Todd Berman  <tberman at sevenl.net>
 
+	* CodeCompletion/CompletionWindow.cs: only UnselectAll when you have
+	a better option, otherwise stay where you are.
+
+2004-03-25  Todd Berman  <tberman at sevenl.net>
+
 	* CodeCompletion/CompletionWindow.cs: add proper checking on when
 	to close the window based on backspacing.

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs	2004-03-25 20:16:28 UTC (rev 1240)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/CodeCompletion/CompletionWindow.cs	2004-03-25 20:20:56 UTC (rev 1241)
@@ -128,8 +128,8 @@
 				}
 			}
 			
-			listView.Selection.UnselectAll ();
 			if (lastSelected != -1) {
+				listView.Selection.UnselectAll ();
 				TreePath path = new TreePath ("" + (lastSelected + 1));
 				listView.Selection.SelectPath (path);
 				listView.SetCursor (path, complete_column, false);




More information about the Monodevelop-patches-list mailing list