0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 9.0.1795: Indentation issues

Problem:  Indentation issues
Solution: Fix code indentation issues.

closes: #12906

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
Yegappan Lakshmanan
2023-08-27 18:35:45 +02:00
committed by Christian Brabandt
parent 74e1dada41
commit d4e4ecbb37
9 changed files with 33 additions and 31 deletions

View File

@@ -109,7 +109,7 @@ PyObject* Vim_PyObject_New(PyTypeObject *type, size_t objsize)
{
PyObject *obj = (PyObject *)PyObject_Malloc(objsize);
if (obj == NULL)
return PyErr_NoMemory();
return PyErr_NoMemory();
return PyObject_Init(obj, type);
}
# undef PyObject_NEW
@@ -270,7 +270,7 @@ int Vim_PyRun_SimpleString(const char *str)
// This function emulates CPython's implementation.
PyObject* m = PyImport_AddModule("__main__");
if (m == NULL)
return -1;
return -1;
PyObject* d = PyModule_GetDict(m);
PyObject* output = Vim_PyRun_String(str, Py_file_input, d, d);
if (output == NULL)