Merge pull request #177 from jazzpi/fix-x-closing-atom
Fix `:x` closing Atom instead of the current pane
This commit is contained in:
commit
26781dc9a4
2 changed files with 8 additions and 0 deletions
|
|
@ -276,6 +276,7 @@ class Ex
|
||||||
|
|
||||||
xit: (args) => @wq(args)
|
xit: (args) => @wq(args)
|
||||||
|
|
||||||
|
x: (args) => @xit(args)
|
||||||
|
|
||||||
split: ({ range, args }) ->
|
split: ({ range, args }) ->
|
||||||
args = args.trim()
|
args = args.trim()
|
||||||
|
|
|
||||||
|
|
@ -485,6 +485,13 @@ describe "the commands", ->
|
||||||
submitNormalModeInputText('xit')
|
submitNormalModeInputText('xit')
|
||||||
expect(Ex.wq).toHaveBeenCalled()
|
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", ->
|
describe ":wqall", ->
|
||||||
it "calls :wall, then :quitall", ->
|
it "calls :wall, then :quitall", ->
|
||||||
spyOn(Ex, 'wall')
|
spyOn(Ex, 'wall')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue