[Monodevelop-patches-list] r944 - trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Thu Feb 19 13:58:44 EST 2004
Author: tberman
Date: 2004-02-19 13:58:44 -0500 (Thu, 19 Feb 2004)
New Revision: 944
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceManager.cs
Log:
working find, next on the list is mark all
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceManager.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceManager.cs 2004-02-19 07:45:46 UTC (rev 943)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceManager.cs 2004-02-19 18:58:44 UTC (rev 944)
@@ -179,9 +179,8 @@
}
int startPos = Math.Min(textArea.Buffer.Text.Length, Math.Max(0, result.Offset));
int endPos = Math.Min(textArea.Buffer.Text.Length, startPos + result.Length);
-
- textArea.Buffer.MoveMark ("insert", textArea.Buffer.GetIterAtOffset (startPos));
- textArea.Buffer.MoveMark ("selection_bound", textArea.Buffer.GetIterAtOffset (endPos));
+ textArea.Buffer.MoveMark ("insert", textArea.Buffer.GetIterAtOffset (endPos));
+ textArea.Buffer.MoveMark ("selection_bound", textArea.Buffer.GetIterAtOffset (startPos));
}
lastResult = result;
More information about the Monodevelop-patches-list
mailing list