Skip to content

Commit

Permalink
Merge pull request #49 from francoiscabrol/bugfix/34-kills-non-ranger…
Browse files Browse the repository at this point in the history
…-buffer

Fix #34 delete only the ranger buffer
  • Loading branch information
francoiscabrol authored Apr 5, 2018
2 parents 5f71be7 + 110a80a commit 5e510f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugin/ranger.vim
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ if has('nvim')
function! OpenRangerIn(path, edit_cmd)
let currentPath = expand(a:path)
let rangerCallback = { 'name': 'ranger', 'edit_cmd': a:edit_cmd }
function! rangerCallback.on_exit(id, code, _event)
silent! Bclose!
function! rangerCallback.on_exit(job_id, code, event)
if a:code == 0
silent! Bclose!
endif
try
if filereadable(s:choice_file_path)
exec system('sed -ie "s/ /\\\ /g" ' . s:choice_file_path)
Expand Down

0 comments on commit 5e510f0

Please sign in to comment.