diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-09-22 13:38:58 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-09-22 13:38:58 -0400 |
commit | 1c84a0e09093d728408024a6baa9967df596be54 (patch) | |
tree | 3038828072136affc9de36257ac49ba069ede25b /src/nvim/ex_cmds.c | |
parent | a4b9e0df67ae95777f8f7d833e7d4c6b8fc3840c (diff) | |
parent | 22bd722c011b04a5fff3182c370c877d82e0fbe0 (diff) | |
download | rneovim-1c84a0e09093d728408024a6baa9967df596be54.tar.gz rneovim-1c84a0e09093d728408024a6baa9967df596be54.tar.bz2 rneovim-1c84a0e09093d728408024a6baa9967df596be54.zip |
Merge pull request #1108 from war1025/dev/for_all_tabs
FOR_ALL_TAB_WINDOWS cleanup. Add FOR_ALL_TABS and FOR_ALL_WINDOWS_IN_TAB.
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 9 |
1 files changed, 3 insertions, 6 deletions
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. */ |