From 176676aadde03d95035c771d44c54ae2802c53b2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 20 Oct 2016 08:18:20 +0530 Subject: [PATCH] Wrong argument order for TIOCSWINSZ --- kitty/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/utils.py b/kitty/utils.py index 94289d3da..7bbd55362 100644 --- a/kitty/utils.py +++ b/kitty/utils.py @@ -80,7 +80,7 @@ def fork_child(cmd, cwd, opts): def resize_pty(w, h): master = create_pty()[0] - fcntl.ioctl(master, termios.TIOCSWINSZ, struct.pack('4H', w, h, 0, 0)) + fcntl.ioctl(master, termios.TIOCSWINSZ, struct.pack('4H', h, w, 0, 0)) def hangup():