We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41ec930 commit 71ad8e2Copy full SHA for 71ad8e2
src/bin/psql/prompt.c
@@ -3,7 +3,7 @@
3
*
4
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
5
6
- * $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.41 2006/01/03 23:32:30 tgl Exp $
7
*/
8
#include "postgres_fe.h"
9
#include "prompt.h"
@@ -296,8 +296,8 @@ get_prompt(promptStatus_t status)
296
* characters in prompt strings must be marked as such, in
297
* order to properly display the line during editing.
298
299
- buf[0] = '\001';
300
- 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';
301
#endif /* USE_READLINE */
302
break;
303
0 commit comments