summaryrefslogtreecommitdiff
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 0e671c8af..b2a9327f1 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -2232,7 +2232,7 @@ ex_listdo(eap)
if (!win_valid(win))
break;
win_goto(win);
- win = win->w_next;
+ win = curwin->w_next;
}
#endif
else if (eap->cmdidx == CMD_bufdo)