[Monodevelop-patches-list] r952 - trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Thu Feb 19 16:41:10 EST 2004
Author: tberman
Date: 2004-02-19 16:41:10 -0500 (Thu, 19 Feb 2004)
New Revision: 952
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceManager.cs
Log:
scroll properly
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceManager.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceManager.cs 2004-02-19 21:17:47 UTC (rev 951)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceManager.cs 2004-02-19 21:41:10 UTC (rev 952)
@@ -81,6 +81,7 @@
textarea.Buffer.Insert(offset, SearchOptions.ReplacePattern);
textarea.Buffer.PlaceCursor (textarea.Buffer.GetIterAtOffset (offset + SearchOptions.ReplacePattern.Length));
+ textarea.View.ScrollMarkOnscreen (textarea.Buffer.InsertMark);
}
}
FindNext();
@@ -137,7 +138,7 @@
} else {
textArea = OpenTextArea(result.FileName);
textArea.Buffer.PlaceCursor (textArea.Buffer.GetIterAtMark (textArea.Buffer.InsertMark));
-
+ textArea.View.ScrollMarkOnscreen (textArea.Buffer.InsertMark);
string transformedPattern = result.TransformReplacePattern(SearchOptions.ReplacePattern);
find.Replace(result.Offset,
result.Length,
@@ -178,6 +179,7 @@
int endPos = Math.Min(textArea.Buffer.Text.Length, startPos + result.Length);
textArea.Buffer.MoveMark ("insert", textArea.Buffer.GetIterAtOffset (endPos));
textArea.Buffer.MoveMark ("selection_bound", textArea.Buffer.GetIterAtOffset (startPos));
+ textArea.View.ScrollMarkOnscreen (textArea.Buffer.InsertMark);
}
lastResult = result;
More information about the Monodevelop-patches-list
mailing list