From 0105b3348373d5f5acd1b0340d82a4b5dca09bd6 Mon Sep 17 00:00:00 2001 From: Oscar Bonilla <6f6231@gmail.com> Date: Thu, 16 Dec 2010 11:46:55 -0800 Subject: [PATCH] _tty_width() will return zero when redo is run inside an emacs shell --- options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/options.py b/options.py index 5ff2a85..25322fb 100644 --- a/options.py +++ b/options.py @@ -60,7 +60,7 @@ def _tty_width(): except (IOError, ImportError): return _atoi(os.environ.get('WIDTH')) or 70 (ysize,xsize,ypix,xpix) = struct.unpack('HHHH', s) - return xsize + return xsize or 70 class Options: