Speed up some redisplay operations with very long lines (Bug#13675).