Skip to content

Commit

Permalink
Fixes microsoft#10386, preventing start find action overwriting find …
Browse files Browse the repository at this point in the history
…input text
  • Loading branch information
Nagaraj committed Aug 25, 2016
1 parent 144dacf commit d0e3f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/editor/contrib/find/common/findController.ts
Expand Up @@ -257,7 +257,7 @@ export class StartFindAction extends EditorAction {
let controller = CommonFindController.get(editor);
controller.start({
forceRevealReplace: false,
seedSearchStringFromSelection: true,
seedSearchStringFromSelection: (controller.getState().searchString.length === 0),
shouldFocus: FindStartFocusAction.FocusFindInput,
shouldAnimate: true
});
Expand Down Expand Up @@ -413,7 +413,7 @@ export class StartFindReplaceAction extends EditorAction {
let controller = CommonFindController.get(editor);
controller.start({
forceRevealReplace: true,
seedSearchStringFromSelection: true,
seedSearchStringFromSelection: (controller.getState().searchString.length === 0),
shouldFocus: FindStartFocusAction.FocusReplaceInput,
shouldAnimate: true
});
Expand Down

0 comments on commit d0e3f86

Please sign in to comment.