wincent / terminus

🖥 Enhanced terminal integration for Vim
BSD 2-Clause "Simplified" License
463 stars 25 forks source link

Guard against "Unknown option: t_SR" for older Vim #11

Closed lencioni closed 9 years ago

lencioni commented 9 years ago

After updating from 928b3bfb to 10564cb4 I started getting the following error when starting Vim:

Error detected while processing /path/to/.vim/bundle/terminus/plugin/terminus.vim: line 58: E355: Unknown option: t_SR

It appears that the t_SR reference was added by 640509f8.

I was running an old version of Vim for some reason (7.4.488) and upgrading (to 7.4.873) made this message disappear. It looks like t_SR was added in patch 687 0, so we can be more hospitable to people who aren't on the latest by adding a guard for this patch.

wincent commented 9 years ago

I love how 7.4.488 is "an old version".

Thanks for the fix!

wincent commented 9 years ago

On master now. Thanks once again.