pgsql: psql: Fix %w length in PROMPT2 when PROMPT1 contains a newline.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: psql: Fix %w length in PROMPT2 when PROMPT1 contains a newline.
Date: 2020-02-10 00:28:58
Message-ID: E1j0wwc-0003qZ-PW@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

psql: Fix %w length in PROMPT2 when PROMPT1 contains a newline.

The width of the invisible PROMPT2 must take into account, in order
for user input to be aligned with the first line, that PROMPT1 can
contain newlines.

Author: Maxence Ahlouche
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/CAJeaomVyLSP_Wj%3D0FtYNTuoopWHyFarhUtYKDHs0HHv%2Bb%3DN9sA%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1713a0013f909d9ce5dd43d234f1cd33d6a50854

Modified Files
--------------
src/bin/psql/prompt.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2020-02-10 01:51:01 pgsql: pg_upgrade: Fix quoting of some arguments in pg_ctl command
Previous Message Tom Lane 2020-02-09 19:22:42 pgsql: Revert "docs: change "default role" wording to "predefined role"