parent
b9b3ba3e9f
commit
a33959f829
1 changed files with 2 additions and 3 deletions
|
|
@ -3,6 +3,7 @@ CommandError = require './command-error'
|
||||||
fs = require 'fs-plus'
|
fs = require 'fs-plus'
|
||||||
VimOption = require './vim-option'
|
VimOption = require './vim-option'
|
||||||
_ = require 'underscore-plus'
|
_ = require 'underscore-plus'
|
||||||
|
atom
|
||||||
|
|
||||||
defer = () ->
|
defer = () ->
|
||||||
deferred = {}
|
deferred = {}
|
||||||
|
|
@ -210,9 +211,7 @@ class Ex
|
||||||
e: (args) => @edit(args)
|
e: (args) => @edit(args)
|
||||||
|
|
||||||
enew: ->
|
enew: ->
|
||||||
buffer = atom.workspace.getActiveTextEditor().buffer
|
atom.workspace.open()
|
||||||
buffer.setPath(undefined)
|
|
||||||
buffer.load()
|
|
||||||
|
|
||||||
write: ({ range, args, editor, saveas }) ->
|
write: ({ range, args, editor, saveas }) ->
|
||||||
saveas ?= false
|
saveas ?= false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue