aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ugrid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ugrid.h')
-rw-r--r--src/nvim/ugrid.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ugrid.h b/src/nvim/ugrid.h
index 33a706b8c0..19c2e99ebb 100644
--- a/src/nvim/ugrid.h
+++ b/src/nvim/ugrid.h
@@ -25,8 +25,8 @@ struct ugrid {
#define UGRID_FOREACH_CELL(grid, row, startcol, endcol, code) \
do { \
UCell *row_cells = (grid)->cells[row]; \
- for (int col = startcol; col < endcol; col++) { \
- UCell *cell = row_cells + col; \
+ for (int curcol = startcol; curcol < endcol; curcol++) { \
+ UCell *cell = row_cells + curcol; \
(void)(cell); \
code; \
} \