diff --git a/ponysay.py b/ponysay.py index 0f90594a..a483e4d6 100755 --- a/ponysay.py +++ b/ponysay.py @@ -2015,6 +2015,8 @@ class Backend(): extraleft -= msgwidth - width elif justify == 'c': extraleft -= (msgwidth - width) >> 1 + if extraleft < 0: + extraleft = 0 if extraleft + msgwidth > wrap: extraleft -= msgwidth - wrap