comparison src/if_py_both.h @ 12513:3ca08bf99396 v8.0.1135

patch 8.0.1135: W_WINCOL() is always the same commit https://github.com/vim/vim/commit/53f8174eaeb93b381cf74c58863f8fe82748a22a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 22 14:35:51 2017 +0200 patch 8.0.1135: W_WINCOL() is always the same Problem: W_WINCOL() is always the same. Solution: Expand the macro.
author Christian Brabandt <cb@256bit.org>
date Fri, 22 Sep 2017 14:45:06 +0200
parents 68d7bc045dbe
children 972ea22c946f
comparison
equal deleted inserted replaced
12512:018c1e1dc521 12513:3ca08bf99396
3875 else if (strcmp(name, "row") == 0) 3875 else if (strcmp(name, "row") == 0)
3876 return PyLong_FromLong((long)(self->win->w_winrow)); 3876 return PyLong_FromLong((long)(self->win->w_winrow));
3877 else if (strcmp(name, "width") == 0) 3877 else if (strcmp(name, "width") == 0)
3878 return PyLong_FromLong((long)(W_WIDTH(self->win))); 3878 return PyLong_FromLong((long)(W_WIDTH(self->win)));
3879 else if (strcmp(name, "col") == 0) 3879 else if (strcmp(name, "col") == 0)
3880 return PyLong_FromLong((long)(W_WINCOL(self->win))); 3880 return PyLong_FromLong((long)(self->win->w_wincol));
3881 else if (strcmp(name, "vars") == 0) 3881 else if (strcmp(name, "vars") == 0)
3882 return NEW_DICTIONARY(self->win->w_vars); 3882 return NEW_DICTIONARY(self->win->w_vars);
3883 else if (strcmp(name, "options") == 0) 3883 else if (strcmp(name, "options") == 0)
3884 return OptionsNew(SREQ_WIN, self->win, (checkfun) CheckWindow, 3884 return OptionsNew(SREQ_WIN, self->win, (checkfun) CheckWindow,
3885 (PyObject *) self); 3885 (PyObject *) self);