From b3d9b671f0cec8d364daef1f5355adb8742e4bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Thu, 1 Nov 2012 02:45:59 +0100 Subject: [PATCH] m --- ponysay.py | 2 ++ 1 file changed, 2 insertions(+) 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