postgres.git / summary / log / commit / refs
commit bf6c87f5a4e946e39d7d428cd05d407957aaac6c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Tue Jan 03 23:32:40 2006 +0000
First released in: 8.2.0, 8.0.6, 8.1.2
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 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/bin/psql/prompt.c b/src/bin/psql/prompt.c
index 9e443cb1266..bfb190559a5 100644
--- a/src/bin/psql/prompt.c
+++ b/src/bin/psql/prompt.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/prompt.c,v 1.38 2005/01/01 05:43:08 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/prompt.c,v 1.38.4.1 2006/01/03 23:32:40 tgl Exp $
*/
#include "postgres_fe.h"
#include "prompt.h"
@@ -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;
[parent: dea775eb25e0]