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);
|
errno = rl_read_init_file(NULL);
|
||||||
if (errno)
|
if (errno)
|
||||||
return PyErr_SetFromErrno(PyExc_OSError);
|
return PyErr_SetFromErrno(PyExc_OSError);
|
||||||
rl_variable_bind ("enable-bracketed-paste", "off");
|
if (!using_libedit_emulation) {
|
||||||
|
rl_variable_bind ("enable-bracketed-paste", "off");
|
||||||
|
}
|
||||||
Py_RETURN_NONE;
|
Py_RETURN_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1242,7 +1244,9 @@ setup_readline(readlinestate *mod_state)
|
||||||
else
|
else
|
||||||
rl_initialize();
|
rl_initialize();
|
||||||
|
|
||||||
rl_variable_bind ("enable-bracketed-paste", "off");
|
if (!using_libedit_emulation) {
|
||||||
|
rl_variable_bind ("enable-bracketed-paste", "off");
|
||||||
|
}
|
||||||
|
|
||||||
RESTORE_LOCALE(saved_locale)
|
RESTORE_LOCALE(saved_locale)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue