diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-01-03 00:44:36 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-03 00:44:36 +0100 | 
| commit | 0afb5fa70aa6b5bc1b007aca5309a5bafd63d868 (patch) | |
| tree | 4c28823971a9411f1fccac4eacd7743bb745f51d /src/nvim/syntax.c | |
| parent | 9f19e8d29dcece387d0aec1dc8c96995276ba61f (diff) | |
| parent | 7ede14d191b1220ac872a24433825997d62ff7ec (diff) | |
| download | rneovim-0afb5fa70aa6b5bc1b007aca5309a5bafd63d868.tar.gz rneovim-0afb5fa70aa6b5bc1b007aca5309a5bafd63d868.tar.bz2 rneovim-0afb5fa70aa6b5bc1b007aca5309a5bafd63d868.zip | |
Merge #9425 'build: enable -Wshadow'
Diffstat (limited to 'src/nvim/syntax.c')
| -rw-r--r-- | src/nvim/syntax.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 973d09d065..81c78ca6a9 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -6463,7 +6463,7 @@ void do_highlight(const char *line, const bool forceit, const bool init)    // If no argument, list current highlighting.    if (ends_excmd((uint8_t)(*line))) { -    for (int i = 1; i <= highlight_ga.ga_len && !got_int; i++) { +    for (i = 1; i <= highlight_ga.ga_len && !got_int; i++) {        // TODO(brammool): only call when the group has attributes set        highlight_list_one(i);      } @@ -6569,8 +6569,8 @@ void do_highlight(const char *line, const bool forceit, const bool init)        restore_cterm_colors();        // Clear all default highlight groups and load the defaults. -      for (int idx = 0; idx < highlight_ga.ga_len; idx++) { -        highlight_clear(idx); +      for (int j = 0; j < highlight_ga.ga_len; j++) { +        highlight_clear(j);        }        init_highlight(true, true);        highlight_changed(); | 
