0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.1234: the code style has to be checked manually

Problem:    The code style has to be checked manually.
Solution:   Add basic code style checks in a test.  Fix or avoid uncovered
            problems.
This commit is contained in:
Bram Moolenaar
2023-01-22 21:14:53 +00:00
parent 3d79f0a430
commit ebfec1c531
34 changed files with 319 additions and 149 deletions

View File

@@ -1505,7 +1505,8 @@ BufferSubscript(PyObject *self, PyObject* idx)
{
long _idx = PyLong_AsLong(idx);
return BufferItem((BufferObject *)(self), _idx);
} else if (PySlice_Check(idx))
}
else if (PySlice_Check(idx))
{
Py_ssize_t start, stop, step, slicelen;
@@ -1539,7 +1540,8 @@ BufferAsSubscript(PyObject *self, PyObject* idx, PyObject* val)
return RBAsItem((BufferObject *)(self), n, val, 1,
(Py_ssize_t)((BufferObject *)(self))->buf->b_ml.ml_line_count,
NULL);
} else if (PySlice_Check(idx))
}
else if (PySlice_Check(idx))
{
Py_ssize_t start, stop, step, slicelen;
@@ -1623,7 +1625,8 @@ RangeSubscript(PyObject *self, PyObject* idx)
{
long _idx = PyLong_AsLong(idx);
return RangeItem((RangeObject *)(self), _idx);
} else if (PySlice_Check(idx))
}
else if (PySlice_Check(idx))
{
Py_ssize_t start, stop, step, slicelen;