Only re-tokenize lines when tab length changes

Closes #3929