Allow file names with spaces for TOC open
This commit is contained in:
parent
53cdd12c94
commit
339fe77104
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user