tigrawap / slit

slit - a modern PAGER for viewing logs, get more than most in less time
Other
469 stars 18 forks source link

Avoid division by zero #73

Closed oswcab closed 5 years ago

oswcab commented 5 years ago

In some environments, termbox returns the width as 0 causing a segmentation fault when trying to calculate if the content fits the terminal screen.

Avoid the division by zero for now while the specific conditions in which this zero value is produced are clarified.