We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f71be7 + 110a80a commit 5e510f0Copy full SHA for 5e510f0
plugin/ranger.vim
@@ -42,8 +42,10 @@ if has('nvim')
42
function! OpenRangerIn(path, edit_cmd)
43
let currentPath = expand(a:path)
44
let rangerCallback = { 'name': 'ranger', 'edit_cmd': a:edit_cmd }
45
- function! rangerCallback.on_exit(id, code, _event)
46
- silent! Bclose!
+ function! rangerCallback.on_exit(job_id, code, event)
+ if a:code == 0
47
+ silent! Bclose!
48
+ endif
49
try
50
if filereadable(s:choice_file_path)
51
exec system('sed -ie "s/ /\\\ /g" ' . s:choice_file_path)
0 commit comments