aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2023-02-06 12:34:06 -0500
committerluigi1111 <luigi1111w@gmail.com>2023-02-06 12:34:06 -0500
commit3ff22aee95e4c6b2d337f44730a92ffe4398dabd (patch)
treedb817a740e872bb03054e1adf4b1131739cd7844 /contrib
parentMerge pull request #8697 (diff)
parentreadline_buffer: disable bracketed paste escape sequences (diff)
downloadmonero-3ff22aee95e4c6b2d337f44730a92ffe4398dabd.tar.xz
Merge pull request #8699
f3420cb readline_buffer: disable bracketed paste escape sequences (Jeffrey Ryan)
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);