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

Commit b44656b

Browse files
committed
🎨
1 parent f774ab1 commit b44656b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/fuzzy-finder-view.coffee

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ class FuzzyFinderView extends SelectListView
6363
@div fileBasename, class: "primary-line file icon #{typeClass}", 'data-name': fileBasename, 'data-path': projectRelativePath
6464
@div projectRelativePath, class: 'secondary-line path no-icon'
6565

66-
openPath: (filePath, lineNumber, searchAllPanes) ->
66+
openPath: (filePath, lineNumber, openOptions) ->
6767
if filePath
68-
atom.workspace.open(filePath, searchAllPanes: searchAllPanes ).done => @moveToLine(lineNumber)
68+
atom.workspace.open(filePath, openOptions).done => @moveToLine(lineNumber)
6969

7070
moveToLine: (lineNumber=-1) ->
7171
return unless lineNumber >= 0
@@ -102,13 +102,13 @@ class FuzzyFinderView extends SelectListView
102102

103103
confirmSelection: ->
104104
item = @getSelectedItem()
105-
@confirmed(item, atom.config.get 'fuzzy-finder.searchAllPanes')
105+
@confirmed(item, searchAllPanes: atom.config.get('fuzzy-finder.searchAllPanes'))
106106

107107
confirmInvertedSelection: ->
108108
item = @getSelectedItem()
109-
@confirmed(item, !atom.config.get 'fuzzy-finder.searchAllPanes')
109+
@confirmed(item, searchAllPanes: not atom.config.get('fuzzy-finder.searchAllPanes'))
110110

111-
confirmed: ({filePath}={}, searchAllPanes) ->
111+
confirmed: ({filePath}={}, openOptions) ->
112112
if atom.workspace.getActiveTextEditor() and @isQueryALineJump()
113113
lineNumber = @getLineNumber()
114114
@cancel()
@@ -121,7 +121,7 @@ class FuzzyFinderView extends SelectListView
121121
else
122122
lineNumber = @getLineNumber()
123123
@cancel()
124-
@openPath(filePath, lineNumber, searchAllPanes)
124+
@openPath(filePath, lineNumber, openOptions)
125125

126126
isQueryALineJump: ->
127127
query = @filterEditorView.getModel().getText()

spec/fuzzy-finder-spec.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ describe 'FuzzyFinder', ->
462462
originalPane = atom.workspace.getActivePane()
463463

464464
expectedPath = atom.project.getDirectories()[0].resolve('sample.txt')
465-
bufferView.confirmed({filePath: expectedPath}, atom.config.get 'fuzzy-finder.searchAllPanes')
465+
bufferView.confirmed({filePath: expectedPath}, searchAllPanes: atom.config.get('fuzzy-finder.searchAllPanes'))
466466

467467
waitsFor ->
468468
atom.workspace.getActiveTextEditor().getPath() is expectedPath

0 commit comments

Comments
 (0)