From 63e02a7cfb3d10683c464b3fd4fb81147be58ed0 Mon Sep 17 00:00:00 2001 From: Daniel Wennberg Date: Mon, 22 May 2017 21:56:07 -0700 Subject: [PATCH] Improve shellescape to handle apostrophes in paths --- autoload/vimtex/util.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimtex/util.vim b/autoload/vimtex/util.vim index 44c3195587..70ef65a66a 100644 --- a/autoload/vimtex/util.vim +++ b/autoload/vimtex/util.vim @@ -32,7 +32,7 @@ function! vimtex#util#shellescape(cmd) " {{{1 let &shellslash = l:shellslash return l:cmd else - return shellescape(a:cmd) + return escape(shellescape(a:cmd), '\') endif endfunction