2016-08-15 23:17 GMT+03:00 Bram Moolenaar <[email protected]>:
…
> ***************
> *** 5131,5136 ****
> --- 5132,5143 ----
>       dict_add_nr_str(dict, "width", wp->w_width, NULL);
>       dict_add_nr_str(dict, "bufnum", wp->w_buffer->b_fnum, NULL);
>
> + #ifdef FEAT_QUICKFIX

This part is not reflected in documentation: if `!has('quickfix')`
relevant entries are missing, otherwise they are always present. It
should either always create these numbers (set to zero if
FEAT_QUICKFIX is not defined) or documentation should explicitly say
that these keys will be missing in case of `!has('quickfix')`.

I am also not sure whether or not this is needed, but tests do not
check for `has('quickfix')`.

> +     dict_add_nr_str(dict, "quickfix", bt_quickfix(wp->w_buffer), NULL);
> +     dict_add_nr_str(dict, "loclist",
> +           (bt_quickfix(wp->w_buffer) && wp->w_llist_ref != NULL), NULL);
> + #endif
> +
>       /* Copy window variables */
>       vars = dict_copy(wp->w_vars, TRUE, 0);
>       if (vars != NULL)

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui