fix argument to get_window_size
This commit is contained in:
@@ -608,11 +608,11 @@ TerminalSpeeds(long *input_speed, long *output_speed)
|
|||||||
int
|
int
|
||||||
TerminalWindowSize(long *rows, long *cols)
|
TerminalWindowSize(long *rows, long *cols)
|
||||||
{
|
{
|
||||||
struct winsize ws;
|
int irows, icols;
|
||||||
|
|
||||||
if (get_window_size (STDIN_FILENO, &ws) == 0) {
|
if (get_window_size(STDIN_FILENO, &irows, &icols) == 0) {
|
||||||
*rows = ws.ws_row;
|
*rows = irows;
|
||||||
*cols = ws.ws_col;
|
*cols = icols;
|
||||||
return 1;
|
return 1;
|
||||||
} else
|
} else
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user