fix autopair multi-term conflict on OS X