gregsexton / gitv

gitk for Vim.
938 stars 59 forks source link

can not back to opened file after "D" to diff. #33

Closed stardiviner closed 12 years ago

stardiviner commented 12 years ago

press <Enter> on gitv's --[plugin/vim.vim]-- can back to opened file. But after I do press D on two commits. then, gitv will give out a diff. but I failed to back to file when I press <Enter> on --[plugin/vim.vim]--. This is not a big problem. But still hope gitv can solve this.

gregsexton commented 12 years ago

Ok, this has always worked perfectly for me.

Can you describe exactly what you expect to happen and specific steps to reproduce the issue.

Thanks,

Greg

stardiviner commented 12 years ago

What I did: Open a file .vimrc in repo. Then execute command :Gitv!, then use V to visual select two commit. Then press D to show diff between two commits. Then I jump to commits window. move cursor on the toppest line --[.vimrc]--, then the left diff window is back to original window. but the right side diff window is still over there. I hope Gitv can close it too.

gregsexton commented 12 years ago

Hi,

I see your issue now. Unfortunately this is the intended behaviour and is working correctly.

gitv does not track changes made to windows and doesn't assume anything about the current window arrangement. For example, you could open new windows and split the diff windows. Which windows should gitv close and which should be left? To play it safe gitv doesn't close any windows and just opens the current working directory version of the file.

Thanks,

Greg