From 31afbba49206be8ed2b346da91b417ce62beb44c Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Fri, 15 Aug 2008 09:19:44 +0000 Subject: [PATCH] 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 --- .../Project/Src/TextEditor/Gui/Editor/IncrementalSearch.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Main/Base/Project/Src/TextEditor/Gui/Editor/IncrementalSearch.cs b/src/Main/Base/Project/Src/TextEditor/Gui/Editor/IncrementalSearch.cs index 3b59a2840c..a255a0a0f7 100644 --- a/src/Main/Base/Project/Src/TextEditor/Gui/Editor/IncrementalSearch.cs +++ b/src/Main/Base/Project/Src/TextEditor/Gui/Editor/IncrementalSearch.cs @@ -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 /// 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 void DisableIncrementalSearchCursor() { - TextArea.Cursor = previousCursor; - TextArea.TextView.Cursor = previousCursor; + TextArea.Cursor = Cursors.IBeam; + TextArea.TextView.Cursor = Cursors.IBeam; } ///