Browse Source

r7321@daniel-notebook (orig r3352): daniel | 2008-08-14 16:14:50 +0200

Fixed text editor bug: Starting an incremental search while the cursor is over the selection caused cursor not to revert to the normal "I-beam" when aborting incremental search.


git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3354 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 18 years ago
parent
commit
31afbba492
  1. 6
      src/Main/Base/Project/Src/TextEditor/Gui/Editor/IncrementalSearch.cs

6
src/Main/Base/Project/Src/TextEditor/Gui/Editor/IncrementalSearch.cs

@ -19,7 +19,6 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor @@ -19,7 +19,6 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor
{
bool disposed;
TextEditorControl textEditor;
Cursor previousCursor;
IFormattingStrategy previousFormattingStrategy;
string incrementalSearchStartMessage;
@ -369,7 +368,6 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor @@ -369,7 +368,6 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor
/// </summary>
void EnableIncrementalSearchCursor()
{
previousCursor = TextArea.Cursor;
Cursor cursor = GetCursor();
TextArea.Cursor = cursor;
TextArea.TextView.Cursor = cursor;
@ -377,8 +375,8 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor @@ -377,8 +375,8 @@ namespace ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor
void DisableIncrementalSearchCursor()
{
TextArea.Cursor = previousCursor;
TextArea.TextView.Cursor = previousCursor;
TextArea.Cursor = Cursors.IBeam;
TextArea.TextView.Cursor = Cursors.IBeam;
}
/// <summary>

Loading…
Cancel
Save