mirror of
https://github.com/atom/atom.git
synced 2026-02-10 06:35:00 -05:00
do not select the extension of a file path when the move dialog triggered
This commit is contained in:
@@ -18,8 +18,10 @@ class MoveDialog extends View
|
||||
|
||||
relativePath = @project.relativize(@path)
|
||||
@editor.setText(relativePath)
|
||||
|
||||
extension = fs.extension(path)
|
||||
baseName = fs.base(path)
|
||||
range = [[0, relativePath.length - baseName.length], [0, relativePath.length]]
|
||||
range = [[0, relativePath.length - baseName.length], [0, relativePath.length - extension.length]]
|
||||
@editor.setSelectionBufferRange(range)
|
||||
|
||||
confirm: ->
|
||||
|
||||
Reference in New Issue
Block a user