fix division by zero bug: screen.c:7679

Initialize tabwidth as 0

Bracify if statements