提交 aee7705b 编写于 作者: T Tom Lane

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.
上级 756e7b4c
...@@ -341,8 +341,10 @@ initializeInput(int flags) ...@@ -341,8 +341,10 @@ initializeInput(int flags)
char home[MAXPGPATH]; char home[MAXPGPATH];
useReadline = true; useReadline = true;
rl_initialize();
/* these two things must be done in this order: */
initialize_readline(); initialize_readline();
rl_initialize();
useHistory = true; useHistory = true;
using_history(); using_history();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册