From 6041d74e63c933fcfee544b926fbc7f8c358d49f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 3 Jan 2006 23:32:40 +0000 Subject: [PATCH] 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. --- src/bin/psql/prompt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5