Issue #15699: Merge readline fixup from 3.5
This commit is contained in:
commit
12eb2ab490
|
@ -78,10 +78,12 @@ on_completion_display_matches_hook(char **matches,
|
||||||
static char *completer_word_break_characters;
|
static char *completer_word_break_characters;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
/* Specify hook functions in Python */
|
||||||
PyObject *completion_display_matches_hook;
|
PyObject *completion_display_matches_hook;
|
||||||
PyObject *startup_hook;
|
PyObject *startup_hook;
|
||||||
PyObject *pre_input_hook;
|
PyObject *pre_input_hook;
|
||||||
PyObject *completer;
|
|
||||||
|
PyObject *completer; /* Specify a word completer in Python */
|
||||||
PyObject *begidx;
|
PyObject *begidx;
|
||||||
PyObject *endidx;
|
PyObject *endidx;
|
||||||
} readlinestate;
|
} readlinestate;
|
||||||
|
@ -334,13 +336,6 @@ set_hook(const char *funcname, PyObject **hook_var, PyObject *args)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Exported functions to specify hook functions in Python */
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_RL_PRE_INPUT_HOOK
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
set_completion_display_matches_hook(PyObject *self, PyObject *args)
|
set_completion_display_matches_hook(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
|
@ -401,14 +396,6 @@ characters.");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Exported function to specify a word completer in Python */
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Get the completion type for the scope of the tab-completion */
|
/* Get the completion type for the scope of the tab-completion */
|
||||||
static PyObject *
|
static PyObject *
|
||||||
get_completion_type(PyObject *self, PyObject *noarg)
|
get_completion_type(PyObject *self, PyObject *noarg)
|
||||||
|
|
Loading…
Reference in New Issue