summaryrefslogtreecommitdiffstats
path: root/src/arglist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arglist.c')
-rw-r--r--src/arglist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arglist.c b/src/arglist.c
index ad404d8ae9..8e0f4d2e8e 100644
--- a/src/arglist.c
+++ b/src/arglist.c
@@ -1046,7 +1046,7 @@ do_arg_all(
// Move the already present window to below the current window
if (curwin->w_arg_idx != i)
{
- for (wpnext = firstwin; wpnext != NULL; wpnext = wpnext->w_next)
+ FOR_ALL_WINDOWS(wpnext)
{
if (wpnext->w_arg_idx == i)
{