Skip to content

Commit aee7705

Browse files
committed
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 2ec477d; like that commit, back-patch to all active branches. Per report from Pavel Stehule.
1 parent 756e7b4 commit aee7705

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
char home[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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy