when outputting in a row x column formatted way, but the available space

on the screen is not enough for two columns, just output the text line by
line, instead of trying to format it; gets rid of superfluous empty lines
if we did not even have space for one column on the screen (x_cols)

noticed by Gábor Gergely in irc, thanks!
This commit is contained in:
tg
2009-02-22 18:02:31 +00:00
parent 5e22cb486f
commit 1b3e4a3a2e
3 changed files with 17 additions and 7 deletions

4
sh.h
View File

@@ -102,9 +102,9 @@
#define __SCCSID(x) __IDSTRING(sccsid,x)
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.273 2009/02/20 13:25:10 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.274 2009/02/22 18:02:31 tg Exp $");
#endif
#define MKSH_VERSION "R36 2009/02/20"
#define MKSH_VERSION "R36 2009/02/22"
#ifndef MKSH_INCLUDES_ONLY