about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2017-12-22 20:00:54 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2017-12-22 20:21:23 +0000
commit5f6a52c06ca956cf61eacd7f45f270899337d45e (patch)
treeb8743b8d42059b329ab6d65fb4019dba45566318 /Src/utils.c
parent349c95765a030cf614c3c2a9fdc45941d3b115fc (diff)
downloadzsh-5f6a52c06ca956cf61eacd7f45f270899337d45e.tar.gz
zsh-5f6a52c06ca956cf61eacd7f45f270899337d45e.tar.xz
zsh-5f6a52c06ca956cf61eacd7f45f270899337d45e.zip
42156: new CHECK_RUNNING_JOBS option demanded by bash groupies
Also new job options.

Also suppress debug error if rows or columns are reported as zero as
this is normal without a physical terminal.
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 4c0ebe6f5..74fdac31f 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -1832,7 +1832,7 @@ adjustlines(int signalled)
     else
 	shttyinfo.winsize.ws_row = zterm_lines;
 #endif /* TIOCGWINSZ */
-    if (zterm_lines <= 0) {
+    if (zterm_lines < 0) {
 	DPUTS(signalled, "BUG: Impossible TIOCGWINSZ rows");
 	zterm_lines = tclines > 0 ? tclines : 24;
     }
@@ -1856,7 +1856,7 @@ adjustcolumns(int signalled)
     else
 	shttyinfo.winsize.ws_col = zterm_columns;
 #endif /* TIOCGWINSZ */
-    if (zterm_columns <= 0) {
+    if (zterm_columns < 0) {
 	DPUTS(signalled, "BUG: Impossible TIOCGWINSZ cols");
 	zterm_columns = tccolumns > 0 ? tccolumns : 80;
     }