diff options
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 3ce8f0d21a..550f742106 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -200,13 +200,13 @@ typedef struct { #define IS_LL_WINDOW(wp) (bt_quickfix(wp->w_buffer) && wp->w_llist_ref != NULL) // Quickfix and location list stack check helper macros -#define IS_QF_STACK(qi) (qi == &ql_info) -#define IS_LL_STACK(qi) (qi != &ql_info) +#define IS_QF_STACK(qi) (qi == &ql_info) +#define IS_LL_STACK(qi) (qi != &ql_info) -/* - * Return location list for window 'wp' - * For location list window, return the referenced location list - */ +// +// Return location list for window 'wp' +// For location list window, return the referenced location list +// #define GET_LOC_LIST(wp) (IS_LL_WINDOW(wp) ? wp->w_llist_ref : wp->w_llist) // Looking up a buffer can be slow if there are many. Remember the last one @@ -3109,24 +3109,24 @@ qf_win_pos_update ( return win != NULL; } -/* - * Check whether the given window is displaying the specified quickfix/location - * list buffer - */ +/// Checks whether the given window is displaying the specified +/// quickfix/location list buffer. static int is_qf_win(win_T *win, qf_info_T *qi) { - /* - * A window displaying the quickfix buffer will have the w_llist_ref field - * set to NULL. - * A window displaying a location list buffer will have the w_llist_ref - * pointing to the location list. - */ - if (bt_quickfix(win->w_buffer)) + // + // A window displaying the quickfix buffer will have the w_llist_ref field + // set to NULL. + // A window displaying a location list buffer will have the w_llist_ref + // pointing to the location list. + // + if (bt_quickfix(win->w_buffer)) { if ((IS_QF_STACK(qi) && win->w_llist_ref == NULL) - || (IS_LL_STACK(qi) && win->w_llist_ref == qi)) - return TRUE; + || (IS_LL_STACK(qi) && win->w_llist_ref == qi)) { + return true; + } + } - return FALSE; + return false; } /// Find a window displaying the quickfix/location list 'qi' |