mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.3.656
Problem: Internal error in :pyeval. Solution: Handle failed object conversion. (ZyX)
This commit is contained in:
@@ -1025,8 +1025,8 @@ static int CurrentSetattr(PyObject *, char *, PyObject *);
|
|||||||
|
|
||||||
static PySequenceMethods BufferAsSeq = {
|
static PySequenceMethods BufferAsSeq = {
|
||||||
(PyInquiry) BufferLength, /* sq_length, len(x) */
|
(PyInquiry) BufferLength, /* sq_length, len(x) */
|
||||||
(binaryfunc) 0, /* BufferConcat, */ /* sq_concat, x+y */
|
(binaryfunc) 0, /* BufferConcat, sq_concat, x+y */
|
||||||
(PyIntArgFunc) 0, /* BufferRepeat, */ /* sq_repeat, x*n */
|
(PyIntArgFunc) 0, /* BufferRepeat, sq_repeat, x*n */
|
||||||
(PyIntArgFunc) BufferItem, /* sq_item, x[i] */
|
(PyIntArgFunc) BufferItem, /* sq_item, x[i] */
|
||||||
(PyIntIntArgFunc) BufferSlice, /* sq_slice, x[i:j] */
|
(PyIntIntArgFunc) BufferSlice, /* sq_slice, x[i:j] */
|
||||||
(PyIntObjArgProc) BufferAssItem, /* sq_ass_item, x[i]=v */
|
(PyIntObjArgProc) BufferAssItem, /* sq_ass_item, x[i]=v */
|
||||||
@@ -1787,6 +1787,10 @@ do_pyeval (char_u *str, typval_T *rettv)
|
|||||||
case VAR_DICT: ++rettv->vval.v_dict->dv_refcount; break;
|
case VAR_DICT: ++rettv->vval.v_dict->dv_refcount; break;
|
||||||
case VAR_LIST: ++rettv->vval.v_list->lv_refcount; break;
|
case VAR_LIST: ++rettv->vval.v_list->lv_refcount; break;
|
||||||
case VAR_FUNC: func_ref(rettv->vval.v_string); break;
|
case VAR_FUNC: func_ref(rettv->vval.v_string); break;
|
||||||
|
case VAR_UNKNOWN:
|
||||||
|
rettv->v_type = VAR_NUMBER;
|
||||||
|
rettv->vval.v_number = 0;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1817,6 +1817,10 @@ do_py3eval (char_u *str, typval_T *rettv)
|
|||||||
case VAR_DICT: ++rettv->vval.v_dict->dv_refcount; break;
|
case VAR_DICT: ++rettv->vval.v_dict->dv_refcount; break;
|
||||||
case VAR_LIST: ++rettv->vval.v_list->lv_refcount; break;
|
case VAR_LIST: ++rettv->vval.v_list->lv_refcount; break;
|
||||||
case VAR_FUNC: func_ref(rettv->vval.v_string); break;
|
case VAR_FUNC: func_ref(rettv->vval.v_string); break;
|
||||||
|
case VAR_UNKNOWN:
|
||||||
|
rettv->v_type = VAR_NUMBER;
|
||||||
|
rettv->vval.v_number = 0;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -719,6 +719,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
656,
|
||||||
/**/
|
/**/
|
||||||
655,
|
655,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user