Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 9da0512

Browse files
authored
Merge pull request #1146 from UziTech/patch-1
shift replace previous
2 parents c02daa0 + 8904d15 commit 9da0512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/find-view.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ class FindView {
235235
'find-and-replace:use-selection-as-replace-pattern': this.setSelectionAsReplacePattern.bind(this)
236236
}));
237237

238-
this.refs.replaceNextButton.addEventListener('click', this.replaceNext.bind(this));
238+
this.refs.replaceNextButton.addEventListener('click', e => e.shiftKey ? this.replacePrevious() : this.replaceNext()));
239239
this.refs.replaceAllButton.addEventListener('click', this.replaceAll.bind(this));
240240
this.subscriptions.add(atom.commands.add('atom-workspace', {
241241
'find-and-replace:replace-previous': this.replacePrevious.bind(this),

0 commit comments

Comments
 (0)