[Monodevelop-patches-list] r1014 - trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Commands
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Mon Feb 23 23:59:56 EST 2004
Author: tberman
Date: 2004-02-23 23:59:56 -0500 (Mon, 23 Feb 2004)
New Revision: 1014
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Commands/SearchCommands.cs
Log:
only put the first selected line into the find entry by default.
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Commands/SearchCommands.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Commands/SearchCommands.cs 2004-02-24 04:25:23 UTC (rev 1013)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Commands/SearchCommands.cs 2004-02-24 04:59:56 UTC (rev 1014)
@@ -60,8 +60,9 @@
{
SourceEditor editor = (SourceEditor) ((SourceEditorDisplayBindingWrapper)window.ViewContent).Control;
string selectedText = editor.Buffer.GetSelectedText ();
+
if (selectedText != null && selectedText.Length > 0)
- SearchReplaceManager.SearchOptions.SearchPattern = selectedText;
+ SearchReplaceManager.SearchOptions.SearchPattern = selectedText.Split ('\n')[0];
}
}
@@ -125,7 +126,7 @@
SourceEditor editor = (SourceEditor) ((SourceEditorDisplayBindingWrapper)window.ViewContent).Control;
string selectedText = editor.Buffer.GetSelectedText ();
if (selectedText != null && selectedText.Length > 0)
- SearchReplaceInFilesManager.SearchOptions.SearchPattern = selectedText;
+ SearchReplaceInFilesManager.SearchOptions.SearchPattern = selectedText.Split ('\n')[0];
}
}
More information about the Monodevelop-patches-list
mailing list