readline_buffer: disable bracketed paste escape sequences

This commit is contained in:
Jeffrey Ryan 2023-01-02 13:36:32 -06:00 committed by jeffro256
parent d9b765a3af
commit 5435202450
No known key found for this signature in database
GPG Key ID: 6F79797A6E392442

View File

@ -238,6 +238,10 @@ static char** attempted_completion(const char* text, int start, int end)
static void install_line_handler() 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_attempted_completion_function = attempted_completion;
rl_callback_handler_install("", handle_line); rl_callback_handler_install("", handle_line);
stifle_history(500); stifle_history(500);