Commit cd2acfd4 authored by Sergei Golubchik's avatar Sergei Golubchik

workaround test failures in buildbot:

in some VMs readline thinks that the window size is zero. ignore it.
parent 7aeb4ece
......@@ -1408,7 +1408,8 @@ sig_handler window_resize(int sig)
struct winsize window_size;
if (ioctl(fileno(stdin), TIOCGWINSZ, &window_size) == 0)
terminal_width= window_size.ws_col;
if (window_size.ws_col > 0)
terminal_width= window_size.ws_col;
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment