Skip to content

Fix this bug #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Fix this bug #1

wants to merge 2 commits into from

Conversation

aminya
Copy link
Member

@aminya aminya commented Jul 2, 2022

atom#1155

See atom/find-and-replace@9da0512#commitcomment-55840601

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

Alternate Designs

Benefits

Possible Drawbacks

Applicable Issues

@@ -235,7 +235,7 @@ class FindView {
'find-and-replace:use-selection-as-replace-pattern': this.setSelectionAsReplacePattern.bind(this)
}));

this.refs.replaceNextButton.addEventListener('click', e => e.shiftKey ? this.replacePrevious() : this.replaceNext()));
this.refs.replaceNextButton.addEventListener('click', e => e.shiftKey ? this.replacePrevious.bind(this) : this.replaceNext.bind(this));
Copy link
Member Author

@aminya aminya Jul 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@icecream17 I don't think this is correct. Because e => this.replacePrevious() : this.replaceNext() is already a lambda. There is no need for bind.

@icecream17 icecream17 mentioned this pull request Jul 2, 2022
icecream17 referenced this pull request in atom/find-and-replace Jul 3, 2022
@aminya aminya closed this in #3 Jul 3, 2022
aminya pushed a commit that referenced this pull request Jul 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants