Browse Source

r7438@daniel-notebook (orig r3400): daniel | 2008-08-17 15:57:22 +0200

Reset "Look in" to current document when it is set to current selection and there is no multiline selection.


git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3410 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 17 years ago
parent
commit
ae0eea9fd5
  1. 3
      src/AddIns/Misc/SearchAndReplace/Project/Gui/SearchAndReplacePanel.cs

3
src/AddIns/Misc/SearchAndReplace/Project/Gui/SearchAndReplacePanel.cs

@ -230,6 +230,9 @@ namespace SearchAndReplace @@ -230,6 +230,9 @@ namespace SearchAndReplace
if (IsMultipleLineSelection(GetCurrentTextSelection())) {
DocumentIteratorType = DocumentIteratorType.CurrentSelection;
} else {
if (SearchOptions.DocumentIteratorType == DocumentIteratorType.CurrentSelection) {
SearchOptions.DocumentIteratorType = DocumentIteratorType.CurrentDocument;
}
DocumentIteratorType = SearchOptions.DocumentIteratorType;
}

Loading…
Cancel
Save