aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJeffrey Ryan <jeffro256@tutanota.com>2023-01-02 13:36:32 -0600
committerjeffro256 <jeffro256@tutanota.com>2023-10-31 02:31:55 -0500
commit54352024508c3832a9d7aa574c9cd288c8733b3b (patch)
treefc591d67e546b03b0c8501110fbe693fb9dace4f /contrib
parentMerge pull request #9027 (diff)
downloadmonero-54352024508c3832a9d7aa574c9cd288c8733b3b.tar.xz
readline_buffer: disable bracketed paste escape sequences
Diffstat (limited to 'contrib')
-rw-r--r--contrib/epee/src/readline_buffer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/epee/src/readline_buffer.cpp b/contrib/epee/src/readline_buffer.cpp
index 1047d1696..ac68d1fdb 100644
--- a/contrib/epee/src/readline_buffer.cpp
+++ b/contrib/epee/src/readline_buffer.cpp
@@ -238,6 +238,10 @@ static char** attempted_completion(const char* text, int start, int end)
static void install_line_handler()
{
+#if RL_READLINE_VERSION >= 0x0801
+ rl_variable_bind("enable-bracketed-paste", "off");
+#endif
+
rl_attempted_completion_function = attempted_completion;
rl_callback_handler_install("", handle_line);
stifle_history(500);