From 683bc797a0d427d818f69dd4772e149cf94e6b12 Mon Sep 17 00:00:00 2001 From: Wayne Rowcliffe Date: Sat, 23 Aug 2014 12:03:14 -0500 Subject: FOR_ALL_WINDOWS_IN_TAB and local variables in FOR_ALL_TAB_WINDOWS --- src/nvim/ex_cmds.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/nvim/ex_cmds.c') diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 163d20f13a..44604b68c4 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -2962,13 +2962,10 @@ do_ecmd ( /* It's possible that all lines in the buffer changed. Need to update * automatic folding for all windows where it's used. */ - { - win_T *win; - tabpage_T *tp; - - FOR_ALL_TAB_WINDOWS(tp, win) - if (win->w_buffer == curbuf) + FOR_ALL_TAB_WINDOWS(tp, win) { + if (win->w_buffer == curbuf) { foldUpdateAll(win); + } } /* Change directories when the 'acd' option is set. */ -- cgit