Formatting fix

This commit is contained in:
Tim Pope
2012-04-10 22:49:31 -04:00
parent 75a27559a3
commit 9bfb7857ec

View File

@@ -126,7 +126,7 @@ function! fugitive#extract_git_dir(path) abort
return root
endif
let previous = root
let root = fnamemodify(previous,':h')
let root = fnamemodify(root, ':h')
endwhile
return ''
endfunction
@@ -137,7 +137,7 @@ function! s:Detect(path)
endif
if !exists('b:git_dir')
let dir = fugitive#extract_git_dir(a:path)
if dir != ''
if dir !=# ''
let b:git_dir = dir
endif
endif
@@ -151,7 +151,7 @@ function! s:Detect(path)
endif
if stridx(buffer.getvar('&tags'), escape(b:git_dir.'/tags', ', ')) == -1
call buffer.setvar('&tags', escape(b:git_dir.'/tags', ', ').','.buffer.getvar('&tags'))
if &filetype != ''
if &filetype !=# ''
call buffer.setvar('&tags', escape(b:git_dir.'/'.&filetype.'.tags', ', ').','.buffer.getvar('&tags'))
endif
endif