Fix calculation of margin width.

It now causes the document to move less frequently when the amount of digits in the relative line numbers changes.

Fixes #11