mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-17 07:43:44 -05:00
Formatting fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user