Skip to content
Snippets Groups Projects
Commit b4177798 authored by Tom Lane's avatar Tom Lane
Browse files

Fix improper initialization order for readline.

Turns out we must set rl_basic_word_break_characters *before* we call
rl_initialize() the first time, because it will quietly copy that value
elsewhere --- but only on the first call.  (Love these undocumented
dependencies.)  I broke this yesterday in commit 2ec477dc;
like that commit, back-patch to all active branches.  Per report from
Pavel Stehule.
parent bcce4a5e
No related branches found
No related tags found
No related merge requests found
......@@ -341,8 +341,10 @@ initializeInput(int flags)
char home[MAXPGPATH];
useReadline = true;
rl_initialize();
/* these two things must be done in this order: */
initialize_readline();
rl_initialize();
useHistory = true;
using_history();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment