|
|
@ -3,7 +3,7 @@ |
|
|
|
* |
|
|
|
* |
|
|
|
* Copyright (c) 2000-2005, PostgreSQL Global Development Group |
|
|
|
* 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.41 2006/01/03 23:32:30 tgl Exp $ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
#include "postgres_fe.h" |
|
|
|
#include "postgres_fe.h" |
|
|
|
#include "prompt.h" |
|
|
|
#include "prompt.h" |
|
|
@ -296,8 +296,8 @@ get_prompt(promptStatus_t status) |
|
|
|
* characters in prompt strings must be marked as such, in |
|
|
|
* characters in prompt strings must be marked as such, in |
|
|
|
* order to properly display the line during editing. |
|
|
|
* order to properly display the line during editing. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
buf[0] = '\001'; |
|
|
|
buf[0] = (*p == '[') ? RL_PROMPT_START_IGNORE : RL_PROMPT_END_IGNORE; |
|
|
|
buf[1] = (*p == '[') ? RL_PROMPT_START_IGNORE : RL_PROMPT_END_IGNORE; |
|
|
|
buf[1] = '\0'; |
|
|
|
#endif /* USE_READLINE */ |
|
|
|
#endif /* USE_READLINE */ |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|