diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-01-03 23:32:34 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-01-03 23:32:34 +0000 |
commit | 54b84d48388084babf819c81761aa1b4b5a34adf (patch) | |
tree | cb1f516234ea5854db72c50c380f2db049380253 /src/bin/psql/prompt.c | |
parent | 495be39266f2f74e1626577fb20dd42d40a99006 (diff) |
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.
Diffstat (limited to 'src/bin/psql/prompt.c')
-rw-r--r-- | src/bin/psql/prompt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/prompt.c b/src/bin/psql/prompt.c index 5b5d7196eb8..7d86b3f7d1b 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.40 2005/10/15 02:49:40 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/prompt.c,v 1.40.2.1 2006/01/03 23:32:34 tgl Exp $ */ #include "postgres_fe.h" #include "prompt.h" @@ -296,8 +296,8 @@ get_prompt(promptStatus_t status) * characters in prompt strings must be marked as 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; |