diff options
author | Steven Oliver <oliver.steven@gmail.com> | 2015-08-19 21:52:45 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-08-20 23:34:52 -0400 |
commit | 2bce7c9baed001af5d1b8b3996cce2426e8ad728 (patch) | |
tree | db5f5786c37db87faa503d6932970e7b2c8a6c9f /src/nvim/cursor_shape.c | |
parent | f253c8d9b4ab0b31ce0d9a6a1b60428785d93d50 (diff) | |
download | rneovim-2bce7c9baed001af5d1b8b3996cce2426e8ad728.tar.gz rneovim-2bce7c9baed001af5d1b8b3996cce2426e8ad728.tar.bz2 rneovim-2bce7c9baed001af5d1b8b3996cce2426e8ad728.zip |
Fix lint errors #3204
Remove formatting errors from arabic.c and cursor_shape.c
Diffstat (limited to 'src/nvim/cursor_shape.c')
-rw-r--r-- | src/nvim/cursor_shape.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/nvim/cursor_shape.c b/src/nvim/cursor_shape.c index 2fbab13e56..87425ca567 100644 --- a/src/nvim/cursor_shape.c +++ b/src/nvim/cursor_shape.c @@ -53,7 +53,7 @@ char_u *parse_shape_opt(int what) int all_idx; int len; int i; - int found_ve = FALSE; /* found "ve" flag */ + int found_ve = false; /* found "ve" flag */ int round; /* @@ -85,18 +85,18 @@ char_u *parse_shape_opt(int what) len = 1; else len = 2; - if (len == 1 && TOLOWER_ASC(modep[0]) == 'a') + + if (len == 1 && TOLOWER_ASC(modep[0]) == 'a') { all_idx = SHAPE_IDX_COUNT - 1; - else { + } else { for (idx = 0; idx < SHAPE_IDX_COUNT; ++idx) - if (STRNICMP(modep, shape_table[idx].name, len) - == 0) + if (STRNICMP(modep, shape_table[idx].name, len) == 0) break; if (idx == SHAPE_IDX_COUNT - || (shape_table[idx].used_for & what) == 0) + || (shape_table[idx].used_for & what) == 0) return (char_u *)N_("E546: Illegal mode"); if (len == 2 && modep[0] == 'v' && modep[1] == 'e') - found_ve = TRUE; + found_ve = true; } modep += len + 1; } @@ -160,11 +160,12 @@ char_u *parse_shape_opt(int what) p += 5; } else { /* must be a highlight group name then */ endp = vim_strchr(p, '-'); - if (commap == NULL) { /* last part */ + if (commap == NULL) { /* last part */ if (endp == NULL) - endp = p + STRLEN(p); /* find end of part */ - } else if (endp > commap || endp == NULL) + endp = p + STRLEN(p); /* find end of part */ + } else if (endp > commap || endp == NULL) { endp = commap; + } slashp = vim_strchr(p, '/'); if (slashp != NULL && slashp < endp) { /* "group/langmap_group" */ |