before trying to change line wrap mode