aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/undo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r--src/nvim/undo.c3
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;