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 308e4bf2412b2ede6efe1a19bf5b1d1a9bcdca4d (tree)
parent 7d484eaf520efc7677e71277d4057d507d27975f
Author: Tim Pope <code@tpope.net>
Date:   Wed, 14 Aug 2019 01:56:17 -0400

Fix temp file gq shadowing blame gq

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

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -2091,7 +2091,9 @@ function! s:TempReadPost(file) abort if empty(mapcheck('q', 'n')) nnoremap <buffer> <silent> q :<C-U>bdelete<Bar>echohl WarningMsg<Bar>echo "Temp file q is deprecated in favor of the built-in <Lt>C-W>q"<Bar>echohl NONE<CR> endif - call s:Map('n', 'gq', ":<C-U>bdelete<CR>", '<silent>') + if !&modifiable + call s:Map('n', 'gq', ":<C-U>bdelete<CR>", '<silent> <unique>') + endif endif return '' endfunction