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.

That v:beval_winnr returns zero for the first window is documented.
Changing it now will create problems for scripts that are using it.
So let's leave it alone, even though it's a bit inconsistant.


-- 
hundred-and-one symptoms of being an internet addict:
169. You hire a housekeeper for your home page.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

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