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 d625c556894c154bb2fb4bf58c5f9bc0af5ff064 (tree)
parent baee3bbfe87784985a410924a2b3a0008d6b8424
Author: Tim Pope <code@tpope.net>
Date:   Mon, 24 Dec 2018 11:35:03 -0500

Fix erratic conf file type on :Gstatus

Closes https://github.com/tpope/vim-fugitive/issues/1137

Diffstat:
Mautoload/fugitive.vim | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -1391,6 +1391,7 @@ function! fugitive#BufReadStatus() abort \ 'status'] endif call s:ReplaceCmd(call('fugitive#Prepare', cmd), 1) + silent doautocmd BufReadPost if b:fugitive_display_format if &filetype !=# 'git' set filetype=git @@ -1445,7 +1446,7 @@ function! fugitive#BufReadStatus() abort nnoremap <buffer> . : <C-R>=<SID>fnameescape(<SID>StatusCfile())<CR><Home> nnoremap <buffer> <silent> g? :help fugitive-:Gstatus<CR> nnoremap <buffer> <silent> <F1> :help fugitive-:Gstatus<CR> - return 'silent doautocmd BufReadPost' + return '' catch /^fugitive:/ return 'echoerr v:errmsg' endtry