if (!PyArg_ParseTuple(args, "i:index", &idx))
return NULL;
if ((hist_ent = history_get(idx)))
- return PyString_FromString(hist_ent->line);
+ return PyString_FromString(hist_ent->line);
else {
Py_INCREF(Py_None);
return Py_None;
{0, 0}
};
+
/* C function to call the Python hooks. */
static int
}
#endif
+
/* C function to call the Python completer. */
static char *
return completion_matches(text, *on_completion);
}
+
/* Helper to initialize GNU readline properly. */
static void