restore edit behaviour: open in current buffer
This commit is contained in:
parent
394dd1dffa
commit
6d723b8a4a
1 changed files with 4 additions and 4 deletions
|
|
@ -104,10 +104,10 @@ class Ex
|
||||||
filePath = filePath.trim()
|
filePath = filePath.trim()
|
||||||
if filePath.indexOf(' ') isnt -1
|
if filePath.indexOf(' ') isnt -1
|
||||||
throw new CommandError('Only one file name allowed')
|
throw new CommandError('Only one file name allowed')
|
||||||
|
buffer = atom.workspace.getActiveTextEditor().buffer
|
||||||
filePath = getFullPath filePath
|
filePath = buffer.getPath() if filePath is ''
|
||||||
atom.workspace.open(filePath)
|
buffer.setPath(getFullPath(filePath))
|
||||||
|
buffer.load()
|
||||||
|
|
||||||
e: (args...) => @edit(args...)
|
e: (args...) => @edit(args...)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue