Fix :x closing Atom instead of the current pane

`x` was being matched with `xall` instead of `xit`, so add an alias.
This commit is contained in:
jazzpi 2017-03-15 13:55:20 +01:00
parent e2c42a6eeb
commit ccf6aa22f8
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')