Corrected computing length (https://github.com/gitextensions/gitextensions/commit/a5b24efb32559c0bd32fc7a0f9f48e36d55865f9#commitcomment-2565602)