Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #288 from aonemd/master
Browse files Browse the repository at this point in the history
Fix #284: Set `patch` keymaps each in its buffer
  • Loading branch information
lambdalisue authored Apr 28, 2021
2 parents e8ad68b + 9381262 commit 699d1e9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions autoload/gina/command/patch.vim
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ function! s:call(range, args, mods) abort
call s:define_plug_mapping('diffput', bufnr2)
call s:define_plug_mapping('diffget', bufnr2)
if g:gina#command#patch#use_default_mappings
nmap dp <Plug>(gina-diffput)
nmap do <Plug>(gina-diffget)
nmap <buffer> dp <Plug>(gina-diffput)
nmap <buffer> do <Plug>(gina-diffget)
endif

" HEAD
Expand All @@ -168,7 +168,7 @@ function! s:call(range, args, mods) abort
call gina#util#diffthis()
call s:define_plug_mapping('diffput', bufnr2)
if g:gina#command#patch#use_default_mappings
nmap dp <Plug>(gina-diffput)
nmap <buffer> dp <Plug>(gina-diffput)
endif
endif

Expand All @@ -181,11 +181,11 @@ function! s:call(range, args, mods) abort
endif
call s:define_plug_mapping('diffget', bufnr3, '-r')
if g:gina#command#patch#use_default_mappings
nmap dp <Plug>(gina-diffput)
nmap <buffer> dp <Plug>(gina-diffput)
if !args.params.oneside
nmap dol <Plug>(gina-diffget-l)
nmap <buffer> dol <Plug>(gina-diffget-l)
endif
nmap dor <Plug>(gina-diffget-r)
nmap <buffer> dor <Plug>(gina-diffget-r)
endif

setlocal buftype=acwrite
Expand Down

0 comments on commit 699d1e9

Please sign in to comment.