in print_columns, skip space padding for all last cells, not just
those in the last column, for jagged arrays
This commit is contained in:
parent
11a2f9d822
commit
bbf0558f6a
4
misc.c
4
misc.c
@ -30,7 +30,7 @@
|
|||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.232 2015/05/01 23:16:30 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.233 2015/07/05 14:33:21 tg Exp $");
|
||||||
|
|
||||||
#define KSH_CHVT_FLAG
|
#define KSH_CHVT_FLAG
|
||||||
#ifdef MKSH_SMALL
|
#ifdef MKSH_SMALL
|
||||||
@ -1286,7 +1286,7 @@ print_columns(struct shf *shf, unsigned int n,
|
|||||||
if (i < n) {
|
if (i < n) {
|
||||||
shf_fprintf(shf, "%*s", max_col,
|
shf_fprintf(shf, "%*s", max_col,
|
||||||
(*func)(str, max_oct, i, arg));
|
(*func)(str, max_oct, i, arg));
|
||||||
if (c + 1 < cols)
|
if (i + rows < n)
|
||||||
shf_fprintf(shf, "%*s", nspace, null);
|
shf_fprintf(shf, "%*s", nspace, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user