From 88341fec82e7c6bc096df79a6d6ed4790f6203db Mon Sep 17 00:00:00 2001 From: Amos Bird Date: Sat, 12 Dec 2020 00:34:40 +0800 Subject: [PATCH] client SIGWINCH fix --- base/common/ReplxxLineReader.cpp | 2 ++ contrib/replxx | 2 +- contrib/replxx-cmake/CMakeLists.txt | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/base/common/ReplxxLineReader.cpp b/base/common/ReplxxLineReader.cpp index 85b474e2021..4eb7b065fe3 100644 --- a/base/common/ReplxxLineReader.cpp +++ b/base/common/ReplxxLineReader.cpp @@ -58,6 +58,8 @@ ReplxxLineReader::ReplxxLineReader( } } + rx.install_window_change_handler(); + auto callback = [&suggest] (const String & context, size_t context_size) { if (auto range = suggest.getCompletions(context, context_size)) diff --git a/contrib/replxx b/contrib/replxx index 8cf626c04e9..254be98ae7f 160000 --- a/contrib/replxx +++ b/contrib/replxx @@ -1 +1 @@ -Subproject commit 8cf626c04e9a74313fb0b474cdbe2297c0f3cdc8 +Subproject commit 254be98ae7f2fd92d6db768f8e11ea5a5226cbf5 diff --git a/contrib/replxx-cmake/CMakeLists.txt b/contrib/replxx-cmake/CMakeLists.txt index 2c0ad86e583..df17e0ed646 100644 --- a/contrib/replxx-cmake/CMakeLists.txt +++ b/contrib/replxx-cmake/CMakeLists.txt @@ -53,7 +53,7 @@ if (NOT LIBRARY_REPLXX OR NOT INCLUDE_REPLXX OR NOT EXTERNAL_REPLXX_WORKS) "${LIBRARY_DIR}/src/ConvertUTF.cpp" "${LIBRARY_DIR}/src/escape.cxx" "${LIBRARY_DIR}/src/history.cxx" - "${LIBRARY_DIR}/src/io.cxx" + "${LIBRARY_DIR}/src/terminal.cxx" "${LIBRARY_DIR}/src/prompt.cxx" "${LIBRARY_DIR}/src/replxx_impl.cxx" "${LIBRARY_DIR}/src/replxx.cxx"