mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 10:26:31 +00:00
refactor: follow style guide
- reduce variable scope - prefer initialization over declaration and assignment - use bool to represent boolean values
This commit is contained in:
@@ -61,10 +61,8 @@ void ugrid_scroll(UGrid *grid, int top, int bot, int left, int right, int count)
|
||||
step = -1;
|
||||
}
|
||||
|
||||
int i;
|
||||
|
||||
// Copy cell data
|
||||
for (i = start; i != stop; i += step) {
|
||||
for (int i = start; i != stop; i += step) {
|
||||
UCell *target_row = grid->cells[i] + left;
|
||||
UCell *source_row = grid->cells[i + count] + left;
|
||||
assert(right >= left && left >= 0);
|
||||
|
Reference in New Issue
Block a user