diff options
author | Jeffrey Ryan <jeffro256@tutanota.com> | 2023-01-02 13:36:32 -0600 |
---|---|---|
committer | Jeffrey Ryan <jeffro256@tutanota.com> | 2023-01-04 16:04:32 -0600 |
commit | f3420cb750c9e3aa76eb41f77bb2417fa560b010 (patch) | |
tree | 458d26189e3ebf1ee924debe6320356c1ee20e50 /contrib/epee/src/readline_buffer.cpp | |
parent | Merge pull request #8593 (diff) | |
download | monero-f3420cb750c9e3aa76eb41f77bb2417fa560b010.tar.xz |
readline_buffer: disable bracketed paste escape sequences
Diffstat (limited to 'contrib/epee/src/readline_buffer.cpp')
-rw-r--r-- | contrib/epee/src/readline_buffer.cpp | 4 |
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); |