aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r--src/nvim/ex_cmds2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index 51d20c746a..6b0d8801fd 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -2130,9 +2130,9 @@ void ex_listdo(exarg_T *eap)
// Remember the number of the next listed buffer, in case
// ":bwipe" is used or autocommands do something strange.
next_fnum = -1;
- for (buf_T *buf = curbuf->b_next; buf != NULL; buf = buf->b_next) {
- if (buf->b_p_bl) {
- next_fnum = buf->b_fnum;
+ for (buf_T *bp = curbuf->b_next; bp != NULL; bp = bp->b_next) {
+ if (bp->b_p_bl) {
+ next_fnum = bp->b_fnum;
break;
}
}