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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user