Skip to content

Commit

Permalink
Restore cursor after :GitDiffOff.
Browse files Browse the repository at this point in the history
  • Loading branch information
bootleq committed Nov 25, 2011
1 parent f0b9a7c commit 730906f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions autoload/gitdiffall.vim
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,11 @@ function! gitdiffall#diffoff() "{{{
silent only

if t:gitdiffall_info.file != expand('%')
let pos = getpos('.')
execute 'edit ' . t:gitdiffall_info.file
if line("'\"") < 2
call setpos('.', pos)
endif
endif

call s:restore_diff_options()
Expand Down

0 comments on commit 730906f

Please sign in to comment.