diff --git a/lib/find-view.js b/lib/find-view.js index c20d22e1..204de714 100644 --- a/lib/find-view.js +++ b/lib/find-view.js @@ -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)); this.refs.replaceAllButton.addEventListener('click', this.replaceAll.bind(this)); this.subscriptions.add(atom.commands.add('atom-workspace', { 'find-and-replace:replace-previous': this.replacePrevious.bind(this),