Find In Path: 'except comments' context is not remembered on dialog re-invocation...
authorMaxim.Mossienko <Maxim.Mossienko@jetbrains.com>
Mon, 4 Aug 2014 10:12:50 +0000 (12:12 +0200)
committerMaxim.Mossienko <Maxim.Mossienko@jetbrains.com>
Mon, 4 Aug 2014 10:12:50 +0000 (12:12 +0200)
platform/lang-impl/src/com/intellij/find/impl/FindDialog.java

index 4c21ddbefeb4684a105b721d9c8be5f8ced7b6e8..83d0131565b790748e2dfdcd60824fb33b839505 100644 (file)
@@ -1084,7 +1084,7 @@ public class FindDialog extends DialogWrapper {
     if (myModel.isInCommentsOnly()) searchContext = FindBundle.message("find.context.in.comments.scope.label");
     else if (myModel.isInStringLiteralsOnly()) searchContext = FindBundle.message("find.context.in.literals.scope.label");
     else if (myModel.isExceptStringLiterals()) searchContext = FindBundle.message("find.context.except.literals.scope.label");
-    else if (myModel.isExceptComments()) searchContext = FindBundle.message("find.context.except.literals.scope.label");
+    else if (myModel.isExceptComments()) searchContext = FindBundle.message("find.context.except.comments.scope.label");
     else if (myModel.isExceptCommentsAndStringLiterals()) searchContext = FindBundle.message("find.context.except.comments.and.literals.scope.label");
     mySearchContext.setSelectedItem(searchContext);