mirror of
https://github.com/atom/atom.git
synced 2026-02-10 06:35:00 -05:00
Don't add a trailing slash when adding file to projects root dir
This commit is contained in:
@@ -21,7 +21,8 @@ class AddDialog extends View
|
||||
@miniEditor.on 'focusout', => @remove()
|
||||
|
||||
directoryPath = if fs.isFile(@path) then fs.directory(@path) else @path
|
||||
relativePath = @rootView.project.relativize(directoryPath) + '/'
|
||||
relativePath = @rootView.project.relativize(directoryPath)
|
||||
relativePath += '/' if relativePath.length > 0
|
||||
@miniEditor.setText(relativePath)
|
||||
|
||||
confirm: ->
|
||||
|
||||
Reference in New Issue
Block a user