mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 12:53:52 -05:00
Don't map <CR> in editable index buffers
This commit is contained in:
@@ -4306,13 +4306,13 @@ function! s:NavigateUp(count) abort
|
||||
endfunction
|
||||
|
||||
function! fugitive#MapJumps(...) abort
|
||||
if get(b:, 'fugitive_type', '') ==# 'blob'
|
||||
nnoremap <buffer> <silent> <CR> :<C-U>.Gblame<CR>
|
||||
else
|
||||
nnoremap <buffer> <silent> <CR> :<C-U>exe <SID>GF("edit")<CR>
|
||||
endif
|
||||
if !&modifiable
|
||||
let nowait = v:version >= 704 ? '<nowait>' : ''
|
||||
if get(b:, 'fugitive_type', '') ==# 'blob'
|
||||
nnoremap <buffer> <silent> <CR> :<C-U>.Gblame<CR>
|
||||
else
|
||||
nnoremap <buffer> <silent> <CR> :<C-U>exe <SID>GF("edit")<CR>
|
||||
endif
|
||||
if get(b:, 'fugitive_type', '') ==# 'blob'
|
||||
nnoremap <buffer> <silent> o :<C-U>.,.+1Gblame<CR>
|
||||
nnoremap <buffer> <silent> S :<C-U>echoerr 'Use gO'<CR>
|
||||
|
||||
Reference in New Issue
Block a user