motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit bbf9e51eb2cfbed70339e847a571c529da93d5c6 (tree)
parent cf3fe781dd7584630fee2cb02a7e2678511c6b72
Author: Tim Pope <code@tpope.net>
Date:   Fri,  8 Feb 2013 19:35:29 -0500

Fix :Git! on Windows.

Closes #301, #302.

Diffstat:
Mplugin/fugitive.vim | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -1,6 +1,6 @@ " fugitive.vim - A Git wrapper so awesome, it should be illegal " Maintainer: Tim Pope <http://tpo.pe/> -" Version: 1.2 +" Version: 2.0 " GetLatestVimScripts: 2975 1 :AutoInstall: fugitive.vim if exists('g:loaded_fugitive') || &cp @@ -2242,10 +2242,10 @@ endif augroup fugitive_temp autocmd! autocmd BufNewFile,BufReadPost * - \ if has_key(s:temp_files,expand('<amatch>:p')) | - \ let b:git_dir = s:temp_files[expand('<amatch>:p')] | + \ if has_key(s:temp_files,expand('<afile>:p')) | + \ let b:git_dir = s:temp_files[expand('<afile>:p')] | \ let b:git_type = 'temp' | - \ call s:Detect(expand('<amatch>:p')) | + \ call s:Detect(expand('<afile>:p')) | \ setlocal bufhidden=delete | \ nnoremap <buffer> <silent> q :<C-U>bdelete<CR>| \ endif