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

Commitaee7705

Browse files
committed
Fix improper initialization order for readline.
Turns out we must set rl_basic_word_break_characters *before* we callrl_initialize() the first time, because it will quietly copy that valueelsewhere --- but only on the first call. (Love these undocumenteddependencies.) I broke this yesterday in commit2ec477d;like that commit, back-patch to all active branches. Per report fromPavel Stehule.
1 parent756e7b4 commitaee7705

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/bin/psql/input.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,10 @@ initializeInput(int flags)
341341
charhome[MAXPGPATH];
342342

343343
useReadline= true;
344-
rl_initialize();
344+
345+
/* these two things must be done in this order: */
345346
initialize_readline();
347+
rl_initialize();
346348

347349
useHistory= true;
348350
using_history();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp