From dd5f63022a7c319c9f1199d2407de75da51617fb Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Mon, 21 Jan 2013 13:02:55 -0800 Subject: [PATCH] :lipstick: Minor tweaks to make the code match Atom's other code. --- src/packages/fuzzy-finder/src/fuzzy-finder.coffee | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/packages/fuzzy-finder/src/fuzzy-finder.coffee b/src/packages/fuzzy-finder/src/fuzzy-finder.coffee index 8d300bf77..6cb748b61 100644 --- a/src/packages/fuzzy-finder/src/fuzzy-finder.coffee +++ b/src/packages/fuzzy-finder/src/fuzzy-finder.coffee @@ -102,15 +102,15 @@ class FuzzyFinder extends SelectList else return unless @rootView.project.getPath()? @allowActiveEditorChange = false - theWord = @rootView.getActiveEditor() - .getCursor().getCurrentWord(wordRegex: @filenameRegex) - if theWord? - @populateProjectPaths(filter: theWord, done: (paths) => + cursor = @rootView.getActiveEditor().getCursor() + currentWord = cursor.getCurrentWord(wordRegex: @filenameRegex) + if currentWord? + @populateProjectPaths(filter: currentWord, done: (paths) => if paths?.length == 1 @rootView.open(paths[0]) else if paths?.length @attach() - @miniEditor.setText(''+theWord)) + @miniEditor.setText('' + currentWord)) populateProjectPaths: (options = {}) -> if @projectPaths?.length > 0