aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/psql/print.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c
index b53e81be379..e103d5b0841 100644
--- a/src/bin/psql/print.c
+++ b/src/bin/psql/print.c
@@ -1424,7 +1424,8 @@ print_aligned_vertical(const printTableContent *cont, FILE *fout)
if (rwidth > min_width)
min_width = rwidth;
- if (width < min_width || output_columns < min_width)
+ if (width < min_width ||
+ (output_columns > 0 && output_columns < min_width))
{
/* Set data width to match min_width */
newdwidth = min_width - hwidth - swidth;