Merge pull request #8699

f3420cb readline_buffer: disable bracketed paste escape sequences (Jeffrey Ryan)
This commit is contained in:
luigi1111 2023-02-06 12:34:06 -05:00
commit 3ff22aee95
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -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);