aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorWayne Rowcliffe <war1025@gmail.com>2014-09-19 23:28:50 -0500
committerWayne Rowcliffe <war1025@gmail.com>2014-09-24 19:00:50 -0500
commit9b6f192693b02e2e5547baf7885d91e61eaa7735 (patch)
treecddc921b79b25a45e624f499e843d1ab8c65214f /src/nvim/quickfix.c
parentbd1ecad4f13c75bd10daf0b542fdc95aaa347dc4 (diff)
downloadrneovim-9b6f192693b02e2e5547baf7885d91e61eaa7735.tar.gz
rneovim-9b6f192693b02e2e5547baf7885d91e61eaa7735.tar.bz2
rneovim-9b6f192693b02e2e5547baf7885d91e61eaa7735.zip
Replace FOR_ALL_WINDOWS 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;
}