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

Loading…
Cancel
Save