From: Tom Lane Date: Tue, 3 Jan 2006 23:32:40 +0000 (+0000) Subject: Fix incorrect treatment of RL_PROMPT_START_IGNORE/RL_PROMPT_END_IGNORE, X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=6041d74e63c933fcfee544b926fbc7f8c358d49f;p=users%2Fbernd%2Fpostgres.git Fix incorrect treatment of RL_PROMPT_START_IGNORE/RL_PROMPT_END_IGNORE, per http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=343616 via Martin Pitt. --- diff --git a/src/bin/psql/prompt.c b/src/bin/psql/prompt.c index d9610aca88..1b36c38270 100644 --- a/src/bin/psql/prompt.c +++ b/src/bin/psql/prompt.c @@ -299,8 +299,8 @@ get_prompt(promptStatus_t status) * such, in order to properly display the line during * editing. */ - buf[0] = '\001'; - buf[1] = (*p == '[') ? RL_PROMPT_START_IGNORE : RL_PROMPT_END_IGNORE; + buf[0] = (*p == '[') ? RL_PROMPT_START_IGNORE : RL_PROMPT_END_IGNORE; + buf[1] = '\0'; #endif /* USE_READLINE */ break;