Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit71ad8e2

Browse files
committed
Fix incorrect treatment of RL_PROMPT_START_IGNORE/RL_PROMPT_END_IGNORE,
perhttp://bugs.debian.org/cgi-bin/bugreport.cgi?bug=343616 via Martin Pitt.
1 parent41ec930 commit71ad8e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/bin/psql/prompt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/prompt.c,v 1.40 2005/10/15 02:49:40 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/prompt.c,v 1.41 2006/01/03 23:32:30 tgl Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"prompt.h"
@@ -296,8 +296,8 @@ get_prompt(promptStatus_t status)
296296
* characters in prompt strings must be marked as such, in
297297
* order to properly display the line during editing.
298298
*/
299-
buf[0]='\001';
300-
buf[1]=(*p=='[') ?RL_PROMPT_START_IGNORE :RL_PROMPT_END_IGNORE;
299+
buf[0]=(*p=='[') ?RL_PROMPT_START_IGNORE :RL_PROMPT_END_IGNORE;
300+
buf[1]='\0';
301301
#endif/* USE_READLINE */
302302
break;
303303

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp