Allow file names with spaces for TOC open

This commit is contained in:
Karl Yngve Lervåg 2014-07-22 00:59:50 +02:00
parent 53cdd12c94
commit 339fe77104

View File

@ -92,7 +92,7 @@ function! s:toc_open_entry(entry)
" Open file buffer " Open file buffer
let bnr = bufnr(a:entry.file) let bnr = bufnr(a:entry.file)
if bnr == -1 if bnr == -1
execute 'badd ' . a:entry.file execute 'badd ' . fnameescape(a:entry.file)
let bnr = bufnr(a:entry.file) let bnr = bufnr(a:entry.file)
endif endif
execute 'buffer! ' . bnr execute 'buffer! ' . bnr