mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 06:43:51 -05:00
Re-enable editing files named index
This is a crude hack. Watch for edge cases. Closes #205.
This commit is contained in:
@@ -2166,6 +2166,9 @@ augroup fugitive_files
|
||||
autocmd BufReadCmd index{,.lock}
|
||||
\ if fugitive#is_git_dir(expand('<amatch>:p:h')) |
|
||||
\ exe s:BufReadIndex() |
|
||||
\ else |
|
||||
\ read <amatch> |
|
||||
\ 1delete |
|
||||
\ endif
|
||||
autocmd FileReadCmd fugitive://**//[0-3]/** exe s:FileRead()
|
||||
autocmd BufReadCmd fugitive://**//[0-3]/** exe s:BufReadIndexFile()
|
||||
|
||||
Reference in New Issue
Block a user