From f8fcc81783803a85b081541b169225e395254385 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 9 Apr 2014 15:25:21 +0900 Subject: [PATCH] Use s:esc function --- plug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.vim b/plug.vim index 0a85c58..2e9e2a9 100644 --- a/plug.vim +++ b/plug.vim @@ -780,7 +780,7 @@ function! s:diff() continue endif - execute 'cd '.substitute(v.dir, ' ', '\\ ', 'g') + execute 'cd '.s:esc(v.dir) let diff = system('git log --pretty=format:"%h %s (%cr)" "HEAD@{0}...HEAD@{1}"') if !v:shell_error && !empty(diff) call append(1, '')