Corrections and optimizations for word wrap.

Signed-off-by: joachim99 <joachim.eibl@gmx.de>
- Word wrap multithreaded.
- Preserve carriage return reintroduced.

Signed-off-by: joachim99 <joachim.eibl@gmx.de>
Merge remote-tracking branch 'upstream/master'