mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +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:
@@ -112,10 +112,9 @@ const char *parse_shape_opt(int what)
|
||||
int len;
|
||||
int i;
|
||||
int found_ve = false; // found "ve" flag
|
||||
int round;
|
||||
|
||||
// First round: check for errors; second round: do it for real.
|
||||
for (round = 1; round <= 2; round++) {
|
||||
for (int round = 1; round <= 2; round++) {
|
||||
if (round == 2 || *p_guicursor == NUL) {
|
||||
// Set all entries to default (block, blinkon0, default color).
|
||||
// This is the default for anything that is not set.
|
||||
|
Reference in New Issue
Block a user