_tty_width() will return zero when redo is run inside an emacs shell
This commit is contained in:
parent
c13eac953e
commit
0105b33483
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue