Fix incorrect function used to get tuple size

This commit is contained in:
Kovid Goyal 2022-02-19 15:29:59 +05:30
parent 9a04405ad2
commit 80fc3a1faa
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -2508,7 +2508,7 @@ hyperlink_id_for_range(Screen *self, const Selection *sel) {
static PyObject*
extend_tuple(PyObject *a, PyObject *b) {
Py_ssize_t bs = PyBytes_GET_SIZE(b);
Py_ssize_t bs = PyTuple_GET_SIZE(b);
if (bs < 1) return a;
Py_ssize_t off = PyTuple_GET_SIZE(a);
if (_PyTuple_Resize(&a, off + bs) != 0) return NULL;