Hi Bram,

On Sun, Jul 15, 2018 at 8:01 AM, Bram Moolenaar <[email protected]> wrote:
>
> Patch 8.1.0187 (after 8.1.0184)
> Problem:    getwininfo() and win_screenpos() return different numbers.
> Solution:   Add one to "wincol" and "winrow" from getwininfo().
> Files:      src/evalfunc.c, src/testdir/test_bufwintabinfo.vim,
>             runtime/doc/eval.txt
>
>
> *** ../vim-8.1.0186/runtime/doc/eval.txt        Sat Jul 14 21:41:38 2018
> --- runtime/doc/eval.txt        Sun Jul 15 16:54:29 2018
> ***************
> *** 4935,4940 ****
> --- 4936,4976 ----
>                         :let list_is_on = gettabwinvar(1, 2, '&list')
>                         :echo "myvar = " . gettabwinvar(3, 1, 'myvar')
>   <
> + getwininfo([{winid}])                                 *getwininfo()*
> +               Returns information about windows as a List with Dictionaries.
> +
> +               If {winid} is given Information about the window with that ID
> +               is returned.  If the window does not exist the result is an
> +               empty list.
> +
> +               Without {winid} information about all the windows in all the
> +               tab pages is returned.
> +
> +               Each List item is a Dictionary with the following entries:
> +                       bufnr           number of buffer in the window
> +                       height          window height (excluding winbar)
> +                       winbar          1 if the window has a toolbar, 0
> +                                       otherwise
>

This list of fields is alphabetically sorted (except for winbar). The
description
for 'winbar' should be moved after 'width'.

- Yegappan

> +                       loclist         1 if showing a location list
> +                                       {only with the +quickfix feature}
> +                       quickfix        1 if quickfix or location list window
> +                                       {only with the +quickfix feature}
> +                       terminal        1 if a terminal window
> +                                       {only with the +terminal feature}
> +                       tabnr           tab page number
> +                       variables       a reference to the dictionary with
> +                                       window-local variables
> +                       width           window width
> +                       wincol          leftmost screen column of the window,
> +                                       col from |win_screenpos()|
> +                       winid           |window-ID|
> +                       winnr           window number
> +                       winrow          topmost screen column of the window,
> +                                       row from |win_screenpos()|
> +
> +               To obtain all window-local variables use: >
> +                       gettabwinvar({tabnr}, {winnr}, '&')
> +
>   getwinpos([{timeout}])                                        *getwinpos()*
>                 The result is a list with two numbers, the result of
>                 getwinposx() and getwinposy() combined:

-- 
-- 
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