mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
Declare garray iterators in the for() scope where possible #819
This commit is contained in:

committed by
Justin M. Keyes

parent
a321480342
commit
f39fd5b4c4
@@ -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;
|
||||
|
Reference in New Issue
Block a user