From 37af082963965ae77d0a8851887c65af5b214e0f Mon Sep 17 00:00:00 2001 From: Yazmin-y <2323294347@qq.com> Date: Sat, 7 May 2022 20:39:37 +0800 Subject: [PATCH] [fix]-malfunction of pg up/down key in gsql command --- src/bin/psql/input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/psql/input.cpp b/src/bin/psql/input.cpp index 5b804f32a9..0493ebb9fa 100644 --- a/src/bin/psql/input.cpp +++ b/src/bin/psql/input.cpp @@ -303,10 +303,10 @@ void setHistSize(const char* targetName, const char* targetValue, bool setToDefa void initializeInput(int flags) { #ifdef USE_READLINE - flags &= useReadline; if (flags & 1) { /* these two things must be done in this order: */ + useReadline = true; initialize_readline(); rl_variable_bind ("enable-meta-key", "off"); rl_initialize(); -- Gitee