From ff01c5472096d5ddef5f763fd95bae3a1329c39b Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 13 Mar 2014 01:04:17 +0900 Subject: [PATCH] Remove unnecessary code --- plug.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plug.vim b/plug.vim index 9e48053..7f68196 100644 --- a/plug.vim +++ b/plug.vim @@ -717,9 +717,7 @@ function! s:status() let ecnt = 0 for [name, spec] in items(g:plugs) if isdirectory(spec.dir) - execute 'cd '.spec.dir - let [valid, msg] = s:git_valid(spec, 1, 0) - cd - + let [valid, msg] = s:git_valid(spec, 1, 1) else let [valid, msg] = [0, 'Not found. Try PlugInstall.'] endif