dhruvasagar / vim-prosession

Handle vim sessions like a pro
254 stars 22 forks source link

Fixed error when opening vim without a buffer #13

Closed m42e closed 9 years ago

m42e commented 9 years ago

Without that fix I get

Error detected while processing function <SNR>64_Prosession:
line    7:
E85: There is no listed buffer

at startup

dhruvasagar commented 9 years ago

How do I reproduce this?

m42e commented 9 years ago

I simply go into a directory, where a session has been created previously and run vim

dhruvasagar commented 9 years ago

I don't get that error. What version of vim are you using ?

dhruvasagar commented 9 years ago

Although I suppose the simpler fix (if this is an issue) would be to just use :silent! instead of :silent

m42e commented 9 years ago

Seems to be valid. silent! works.

dhruvasagar commented 9 years ago

Thanks