murisfurder / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

Diff mode gets stuck #336

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Unfortunately I haven't discovered an easy way to reproduce this.

1. open two similar files (call them A and B) in split windows
2. windo diffthis
3. navigate away from B using bufexplorer, netrw and other plugins, opening and 
closing windows etc.
4. switch back to buffer B

It sometimes happens that in step 4 I get to see buffer B without diff 
highlighting.  At that point I can switch to the window displaying buffer A, 
:diffoff, close all other windows with :only, attempt a big hamer like  :bufdo 
diffoff, and yet if I'll open an unrelated file C and try to :diffthis, vim 
will begin diffing it with B.

The only way to make vim forget it was ever diffing with B that I discovered is 
to open a new tab page and close the old tab page.

I'm using vim 7.4.617 on Linux.

Original issue reported on code.google.com by mged...@gmail.com on 5 Mar 2015 at 11:14