Too much escaping

References #227.
This commit is contained in:
Marco Hinz 2016-06-08 11:53:24 +02:00
parent 26cff271ef
commit dbaa025424

View file

@ -423,15 +423,15 @@ function! s:open_buffer(entry)
if a:entry.type == 'special'
execute a:entry.cmd
elseif a:entry.type == 'session'
execute a:entry.cmd fnameescape(a:entry.path)
execute a:entry.cmd a:entry.path
elseif a:entry.type == 'file'
if line2byte('$') == -1
execute 'edit' fnameescape(a:entry.path)
execute 'edit' a:entry.path
else
if a:entry.cmd == 'tabnew'
wincmd =
endif
execute a:entry.cmd fnameescape(a:entry.path)
execute a:entry.cmd a:entry.path
endif
call s:check_user_options(a:entry.path)
endif