Rev 4761: Fix parameter order. in file:///home/vila/src/bzr/bugs/353370-notty-no-term-width/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Wed Dec 9 14:18:48 GMT 2009
At file:///home/vila/src/bzr/bugs/353370-notty-no-term-width/
------------------------------------------------------------
revno: 4761
revision-id: v.ladeuil+lp at free.fr-20091209141848-enx8tnsb84wwq2bl
parent: v.ladeuil+lp at free.fr-20091209103104-3mu4zqvl6myzq4cd
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 353370-notty-no-term-width
timestamp: Wed 2009-12-09 15:18:48 +0100
message:
Fix parameter order.
* bzrlib/osutils.py:
(_ioctl_terminal_size): bah, use the right order for height, width.
-------------- next part --------------
=== modified file 'bzrlib/osutils.py'
--- a/bzrlib/osutils.py 2009-12-09 10:31:04 +0000
+++ b/bzrlib/osutils.py 2009-12-09 14:18:48 +0000
@@ -1398,7 +1398,7 @@
import struct, fcntl, termios
s = struct.pack('HHHH', 0, 0, 0, 0)
x = fcntl.ioctl(1, termios.TIOCGWINSZ, s)
- width, height = struct.unpack('HHHH', x)[0:2]
+ height, width = struct.unpack('HHHH', x)[0:2]
except (IOError, AttributeError):
pass
return width, height
More information about the bazaar-commits
mailing list