From 339fe77104b5e60df96aa60e858223102281b193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Tue, 22 Jul 2014 00:59:50 +0200 Subject: [PATCH] Allow file names with spaces for TOC open --- ftplugin/latextoc.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftplugin/latextoc.vim b/ftplugin/latextoc.vim index 5e445a0..8cc7f5a 100644 --- a/ftplugin/latextoc.vim +++ b/ftplugin/latextoc.vim @@ -92,7 +92,7 @@ function! s:toc_open_entry(entry) " Open file buffer let bnr = bufnr(a:entry.file) if bnr == -1 - execute 'badd ' . a:entry.file + execute 'badd ' . fnameescape(a:entry.file) let bnr = bufnr(a:entry.file) endif execute 'buffer! ' . bnr