Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diff problems only with GUI but not in terminal #541

Closed
fgarcia opened this issue Aug 26, 2014 · 2 comments
Closed

Diff problems only with GUI but not in terminal #541

fgarcia opened this issue Aug 26, 2014 · 2 comments

Comments

@fgarcia
Copy link

fgarcia commented Aug 26, 2014

I got again an old known error while using :Gdiff

Error detected while processing function <SNR>61_Diff:
line   51:
E97: Cannot create diffs

The funny thing is that I get that error only while running the graphical version (MacVim) but not if I run that common from the terminal version.

Any ideas?

@fgarcia
Copy link
Author

fgarcia commented Aug 26, 2014

OK, this was a problem I had long ago and it took me 2 minutes to solve myself after opening the issue. I will leave it open if this can help others or make vim-fugitive more robust:

I solved the problem by searching only GUI config and found this:

if has('gui_running')
  set shellcmdflag=-ci
end

Removed that, everything is fine

@tpope
Copy link
Owner

tpope commented Aug 26, 2014

Yeah, you'll note that E97 does mention shell config. I don't think -i is absolutely off limits but depending what's in your shell config it could easily break not just diffing but anything that shells out. You might hunt through your shell config to find the trigger.

Closing because I don't think that will inhibit others finding this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants