Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions plugin/dirdiff.vim
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ function! <SID>GetBaseDir(diffName)
endfunction

function! <SID>DirDiffNext()
let t_winid = win_getid()
" If the current window is a diff, go down one
call <SID>GotoDiffWindow()
" if the current line is <= 6, (within the header range), we go to the
Expand All @@ -649,13 +650,16 @@ function! <SID>DirDiffNext()
endif
silent! exe (b:currentDiff + 1)
call <SID>DirDiffOpen()
call win_gotoid(t_winid)
endfunction

function! <SID>DirDiffPrev()
let t_winid = win_getid()
" If the current window is a diff, go down one
call <SID>GotoDiffWindow()
silent! exe (b:currentDiff - 1)
call <SID>DirDiffOpen()
call win_gotoid(t_winid)
endfunction

" For each line, we can perform a recursive copy or delete to sync up the
Expand Down