Mercurial > vim
diff src/if_python3.c @ 31804:50555279168b
patch 9.0.1234: the code style has to be checked manually
Commit: https://github.com/vim/vim/commit/ebfec1c531f32d424bb2aca6e7391ef3bfcbfe20
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 22 21:14:53 2023 +0000
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 22 Jan 2023 22:15:04 +0100 |
parents | 27c9212d10aa |
children | 078630443def |
line wrap: on
line diff
--- a/src/if_python3.c +++ b/src/if_python3.c @@ -1505,7 +1505,8 @@ BufferSubscript(PyObject *self, PyObject { 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, PyObje 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* { 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;