Merge pull request #177 from jazzpi/fix-x-closing-atom

Fix `:x` closing Atom instead of the current pane
This commit is contained in:
Jasper v. B 2017-03-15 14:52:36 +01:00 committed by GitHub
commit 26781dc9a4
2 changed files with 8 additions and 0 deletions

View file

@ -276,6 +276,7 @@ class Ex
xit: (args) => @wq(args)
x: (args) => @xit(args)
split: ({ range, args }) ->
args = args.trim()

View file

@ -485,6 +485,13 @@ describe "the commands", ->
submitNormalModeInputText('xit')
expect(Ex.wq).toHaveBeenCalled()
describe ":x", ->
it "acts as an alias to :xit", ->
spyOn(Ex, 'xit')
openEx()
submitNormalModeInputText('x')
expect(Ex.xit).toHaveBeenCalled()
describe ":wqall", ->
it "calls :wall, then :quitall", ->
spyOn(Ex, 'wall')