only disable bracketed paste for GNU Readline, not libedit
This commit is contained in:
parent
2c9c8dceb3
commit
dea83c3a6a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue