aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-10-03 13:44:50 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-10-03 13:44:50 -0400
commit5e65e3eae079d4765124ce791ce79649444ca403 (patch)
tree113af0483ab523a793ad1ac96426caabcc89210e /src/nvim/quickfix.c
parent60e5d8d1ccd5a07038138f18752620edebeb8a3d (diff)
parent7aca07b0a74f882e59d6462597cb5d981ed2cc1f (diff)
downloadrneovim-5e65e3eae079d4765124ce791ce79649444ca403.tar.gz
rneovim-5e65e3eae079d4765124ce791ce79649444ca403.tar.bz2
rneovim-5e65e3eae079d4765124ce791ce79649444ca403.zip
Merge pull request #1208 from war1025/dev/remove_for_all_windows
Remove FOR_ALL_WINDOWS and replace with FOR_ALL_WINDOWS_IN_TAB(curtab)
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index b2a6b01d96..738bfb4c58 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -1382,7 +1382,7 @@ void qf_jump(qf_info_T *qi, int dir, int errornr, int forceit)
win_T *wp = NULL;
if (cmdmod.tab == 0) {
- FOR_ALL_WINDOWS(wp2) {
+ FOR_ALL_WINDOWS_IN_TAB(wp2, curtab) {
if (wp2->w_buffer != NULL && wp2->w_buffer->b_help) {
wp = wp2;
break;
@@ -1441,7 +1441,7 @@ void qf_jump(qf_info_T *qi, int dir, int errornr, int forceit)
if (ll_ref != NULL) {
/* Find a window using the same location list that is not a
* quickfix window. */
- FOR_ALL_WINDOWS(wp) {
+ FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
if (wp->w_llist == ll_ref
&& wp->w_buffer->b_p_bt[0] != 'q') {
usable_win = true;
@@ -1453,7 +1453,7 @@ void qf_jump(qf_info_T *qi, int dir, int errornr, int forceit)
if (!usable_win) {
/* Locate a window showing a normal buffer */
- FOR_ALL_WINDOWS(wp) {
+ FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
if (wp->w_buffer->b_p_bt[0] == NUL) {
usable_win = true;
break;
@@ -1502,7 +1502,7 @@ win_found:
win = usable_win_ptr;
if (win == NULL) {
/* Find the window showing the selected file */
- FOR_ALL_WINDOWS(wp) {
+ FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
if (wp->w_buffer->b_fnum == qf_ptr->qf_fnum) {
win = wp;
break;
@@ -2217,7 +2217,7 @@ static int is_qf_win(win_T *win, qf_info_T *qi)
*/
static win_T *qf_find_win(qf_info_T *qi)
{
- FOR_ALL_WINDOWS(win) {
+ FOR_ALL_WINDOWS_IN_TAB(win, curtab) {
if (is_qf_win(win, qi)) {
return win;
}
@@ -3507,7 +3507,7 @@ void ex_helpgrep(exarg_T *eap)
qi = NULL;
/* Find an existing help window */
- FOR_ALL_WINDOWS(wp) {
+ FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
if (wp->w_buffer != NULL && wp->w_buffer->b_help) {
qi = wp->w_llist;
}