On 17-Jan-2014 Bram Moolenaar <[email protected]> wrote: > > 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.
Yes, definitely! But can we, please, change the documentation like I suggested in my second e-mail so that the information can be more easily found? If it had been obvious from the documentation that v:beval_winnr is 0-based, I wouldn't have suggested the change. I think when you read help for 'bexpr' it is not obvious that you should also follow on to help for v:beval_winnr. -- Lech Lorens -- -- 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.
