Avoid heavy execution of highlight command

I think that it can check the mode was changed.