From 6d723b8a4ada9f99491ff4679928a54d5133759b Mon Sep 17 00:00:00 2001 From: Rom Grk Date: Fri, 29 May 2015 15:43:44 -0400 Subject: [PATCH] restore edit behaviour: open in current buffer --- lib/ex.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ex.coffee b/lib/ex.coffee index 7b963ea..eff71bc 100644 --- a/lib/ex.coffee +++ b/lib/ex.coffee @@ -104,10 +104,10 @@ class Ex filePath = filePath.trim() if filePath.indexOf(' ') isnt -1 throw new CommandError('Only one file name allowed') - - filePath = getFullPath filePath - atom.workspace.open(filePath) - + buffer = atom.workspace.getActiveTextEditor().buffer + filePath = buffer.getPath() if filePath is '' + buffer.setPath(getFullPath(filePath)) + buffer.load() e: (args...) => @edit(args...)