diff --git a/spec/atom/root-view-spec.coffee b/spec/atom/root-view-spec.coffee index 8c32a604a..2ac3e78c9 100644 --- a/spec/atom/root-view-spec.coffee +++ b/spec/atom/root-view-spec.coffee @@ -30,11 +30,6 @@ describe "RootView", -> rootView.toggleFileFinder() expect(rootView.fileFinder.urlList.children('li').length).toBe 3 - it "remove common path prefix from files", -> - rootView.toggleFileFinder() - commonPathPattern = new RegExp("^" + fs.directory(baseUrl)) - expect(rootView.fileFinder.urlList.children('li:first').text()).not.toMatch commonPathPattern - describe "when the editor has no url", -> it "does not open the FileFinder", -> expect(rootView.editor.buffer.url).toBeUndefined() diff --git a/src/atom/root-view.coffee b/src/atom/root-view.coffee index ba6581388..0af4da34c 100644 --- a/src/atom/root-view.coffee +++ b/src/atom/root-view.coffee @@ -39,7 +39,6 @@ class RootView extends Template else directory = fs.directory @editor.buffer.url urls = (url for url in fs.list(directory, true) when fs.isFile url) - urls = (url.replace(directory, "") for url in urls) @fileFinder = FileFinder.build({urls}) @addPane(@fileFinder) @fileFinder.input.focus()