Fix division by zero bug: screen.c:7679

*Previously #1237*

Also:
* Initialize tabwidth as 0
* Bracify if statements
I think we've been intentionally keeping these whitespace errors in the code to keep the blame history more accurate.

But if people are okay with you fixing them that would be great.