only disable bracketed paste for GNU Readline, not libedit

This commit is contained in:
Dustin Rodrigues 2021-01-05 00:49:24 -05:00
parent 2c9c8dceb3
commit dea83c3a6a
1 changed files with 6 additions and 2 deletions

View File

@ -212,7 +212,9 @@ readline_read_init_file_impl(PyObject *module, PyObject *filename_obj)
errno = rl_read_init_file(NULL);
if (errno)
return PyErr_SetFromErrno(PyExc_OSError);
if (!using_libedit_emulation) {
rl_variable_bind ("enable-bracketed-paste", "off");
}
Py_RETURN_NONE;
}
@ -1242,7 +1244,9 @@ setup_readline(readlinestate *mod_state)
else
rl_initialize();
if (!using_libedit_emulation) {
rl_variable_bind ("enable-bracketed-paste", "off");
}
RESTORE_LOCALE(saved_locale)
return 0;