From 0973fbd76c37c9a26090b18014e5e676d6d7f9dd Mon Sep 17 00:00:00 2001 From: Stefan Haustein Date: Sat, 23 Mar 2019 22:33:10 +0100 Subject: [PATCH] Revert "null values" This reverts commit 3e57ebb80cb57499e0716c62eafa65771c88140d. --- src/main/cpp/tiv.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/cpp/tiv.cpp b/src/main/cpp/tiv.cpp index d1df5ef..ca2eebb 100644 --- a/src/main/cpp/tiv.cpp +++ b/src/main/cpp/tiv.cpp @@ -445,10 +445,9 @@ int main(int argc, char* argv[]) { struct winsize w; ioctl(STDOUT_FILENO, TIOCGWINSZ, &w); - //If redirect STDOUT to one file ( col and row == 0 ) - if(w.ws_col == 0 && w.ws_row == 0) { - ioctl(0, TIOCGWINSZ, &w); - } + //If redirect STDOUT to one file + if(w.ws_col == 0 && w.ws_col == 0) + ioctl(0, TIOCGWINSZ, &w); int maxWidth = w.ws_col * 4; int maxHeight = w.ws_row * 8;