mirror of https://github.com/postgres/postgres
We should ignore output_columns unless it's greater than zero. A zero means we couldn't get any information from ioctl(TIOCGWINSZ); in that case the expected behavior is to print the data at native width, not to wrap it at the smallest possible value. print_aligned_text() gets this consideration right, but print_aligned_vertical() lost track of this detail somewhere along the line.pull/14/head^2
parent
e50cda7840
commit
2287b87454
Loading…
Reference in new issue