On 16-Jan-2014 23:46 +0100, Lech Lorens wrote:

> winnr() returns the index of the window 1-based while v:beval_winnr
> (:help 'bexpr') is 0-based.  I believe the latter should be fixed.  The
> attached patch adds increments the value of v:beval_winnr by 1.

The choosen base is unfortunate, but for backwards compatibility, I'd
rather keep it 0-based. The help (which your patch fails to adapt)
clearly mentions this:

,----[ :h v:beval_winnr ]----
| The first window has number zero (unlike most other places where a
| window gets a number).
`----

-- regards, ingo

-- 
-- 
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/groups/opt_out.

Raspunde prin e-mail lui