fix argument to get_window_size

This commit is contained in:
Love Hornquist Astrand
2011-05-04 21:50:17 -07:00
parent b1909b2daa
commit 41328aa28e

View File

@@ -608,11 +608,11 @@ TerminalSpeeds(long *input_speed, long *output_speed)
int
TerminalWindowSize(long *rows, long *cols)
{
struct winsize ws;
int irows, icols;
if (get_window_size (STDIN_FILENO, &ws) == 0) {
*rows = ws.ws_row;
*cols = ws.ws_col;
if (get_window_size(STDIN_FILENO, &irows, &icols) == 0) {
*rows = irows;
*cols = icols;
return 1;
} else
return 0;