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' if a:entry.type == 'special'
execute a:entry.cmd execute a:entry.cmd
elseif a:entry.type == 'session' 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' elseif a:entry.type == 'file'
if line2byte('$') == -1 if line2byte('$') == -1
execute 'edit' fnameescape(a:entry.path) execute 'edit' a:entry.path
else else
if a:entry.cmd == 'tabnew' if a:entry.cmd == 'tabnew'
wincmd = wincmd =
endif endif
execute a:entry.cmd fnameescape(a:entry.path) execute a:entry.cmd a:entry.path
endif endif
call s:check_user_options(a:entry.path) call s:check_user_options(a:entry.path)
endif endif