aboutsummaryrefslogtreecommitdiff
path: root/autoload/prettier.vim
diff options
context:
space:
mode:
authorMitermayer Reis <mitermayer.reis@gmail.com>2017-05-27 23:31:12 -0700
committerGitHub <noreply@github.com>2017-05-27 23:31:12 -0700
commitae7cee800e4eb1effd7df3d917c000c60d411ace (patch)
tree1cc30acbc0ef1082af1f47d995a3d30ec47f1f66 /autoload/prettier.vim
parent7d16472a244199ec80ba6e8a0b6cb680dcb25a41 (diff)
parenteb67ed67d12ede455a1da5d28fb7e8a353187a98 (diff)
downloadvim-prettier-ae7cee800e4eb1effd7df3d917c000c60d411ace.tar.xz
Merge pull request #8 from mitermayer/bug/incorrect-check-for-directory
bugfix: fixing bug where prettier installation of the plugin was never
Diffstat (limited to 'autoload/prettier.vim')
-rw-r--r--autoload/prettier.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/prettier.vim b/autoload/prettier.vim
index 14c1e23..37f0a73 100644
--- a/autoload/prettier.vim
+++ b/autoload/prettier.vim
@@ -165,7 +165,7 @@ function! s:Get_Exec(...) abort
let l:rootDir = a:0 > 0 ? a:1 : 0
let l:exec = 0
- if rootDir
+ if isdirectory(rootDir)
let l:dir = s:Tranverse_Dir_Search(rootDir)
if dir != -1
let l:exec = s:Get_Path_To_Exec(dir)