diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-06-06 23:25:13 -0300 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-06-10 14:15:21 -0400 |
commit | f39fd5b4c424cc477a168fbf4eebfe315d23e614 (patch) | |
tree | af9fd539e39b83bbe47be55d5b76870ff3ffe630 /src/nvim/undo.c | |
parent | a3214803429e05635cbfbe8b3050a73406da6bc6 (diff) | |
download | rneovim-f39fd5b4c424cc477a168fbf4eebfe315d23e614.tar.gz rneovim-f39fd5b4c424cc477a168fbf4eebfe315d23e614.tar.bz2 rneovim-f39fd5b4c424cc477a168fbf4eebfe315d23e614.zip |
Declare garray iterators in the for() scope where possible #819
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r-- | src/nvim/undo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 5bc99f4e3e..b7a3601d0f 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -2235,7 +2235,6 @@ void ex_undolist(exarg_T *eap) int mark; int nomark; int changes = 1; - int i; /* * 1: walk the tree to find all leafs, put the info in "ga". @@ -2305,7 +2304,7 @@ void ex_undolist(exarg_T *eap) msg_start(); msg_puts_attr((char_u *)_("number changes when saved"), hl_attr(HLF_T)); - for (i = 0; i < ga.ga_len && !got_int; ++i) { + for (int i = 0; i < ga.ga_len && !got_int; ++i) { msg_putchar('\n'); if (got_int) break; |