From 6abaaac125fdad0151930566d599be5dcc109e86 Mon Sep 17 00:00:00 2001 From: Clinton Roy Date: Tue, 19 Jan 2016 09:27:16 +1000 Subject: [PATCH] actually handle an environment with COLUMNS set. --- meh/ui/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meh/ui/text.py b/meh/ui/text.py index e4d99f2..db19a40 100644 --- a/meh/ui/text.py +++ b/meh/ui/text.py @@ -79,7 +79,7 @@ def __init__(self, title, *args, **kwargs): @property def _usable_width(self): - return os.environ.get("COLUMNS", 80) - 1 + return int(os.environ.get("COLUMNS", 80)) - 1 def _print_rule(self): rule = self._usable_width * "="