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/quickfix.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/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 3bc70b6b41..b2a6b01d96 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -1466,11 +1466,7 @@ void qf_jump(qf_info_T *qi, int dir, int errornr, int forceit) * then search in other tabs. */ if (!usable_win && (swb_flags & SWB_USETAB)) { - tabpage_T *tp; - win_T *wp; - - FOR_ALL_TAB_WINDOWS(tp, wp) - { + FOR_ALL_TAB_WINDOWS(tp, wp) { if (wp->w_buffer->b_fnum == qf_ptr->qf_fnum) { goto_tabpage_win(tp, wp); usable_win = true; @@ -2236,12 +2232,11 @@ static win_T *qf_find_win(qf_info_T *qi) */ static buf_T *qf_find_buf(qf_info_T *qi) { - tabpage_T *tp; - win_T *win; - - FOR_ALL_TAB_WINDOWS(tp, win) - if (is_qf_win(win, qi)) - return win->w_buffer; + FOR_ALL_TAB_WINDOWS(tp, win) { + if (is_qf_win(win, qi)) { + return win->w_buffer; + } + } return NULL; } |