juneedahamed / vc.vim

Support for SVN, Git, HG and BZR
47 stars 9 forks source link

Windows are left in the diff state leading to diff confusion #10

Open idbrii opened 7 years ago

idbrii commented 7 years ago

Diff an svn file, switch to some other file (without calling :diffoff), and diff again and vimdiff thinks all the files are in the same diff and the highlighting of the two current diff windows looks wrong.

You can fix by calling diffoff when a diffed window is closed. Fugitive does this automatically. (fugitive also handles restoring diff settings when it does this: https://github.com/tpope/vim-fugitive/commit/a0f5c0445eca54b5ce9ed90275fd49feafc998fd )

Related to #8 (which implements this, but isn't a clean and dependency-free implementation).