By the way, how about modifying the API to use usual {tab}, {win} order
(seen in various *tabwin* functions), with {tab}=0 used to get the current
tab implicitly. It is

1. consistent with other functions accepting tab and window and
2. allows getcwd({tab}) to return tab-local working directory should this
feature be implemented (see https://github.com/neovim/neovim/pull/3229).

2015-11-15 16:57 GMT+03:00 h_east <[email protected]>:

> Hi ZyX!
>
> 2015-11-15(Sun) 22:42:45 UTC+9 ZyX:
> > Test contains error:
> >
> >
> >
> > +: let tab_changed = 0
> >
> >
> > Here variable is named `tab_changed` (and this is the name checked later)
> >
> >
> > +: let mod = ":t"
> > +: if a:tab > 0 && a:tab != tabpagenr()
> > +:   let tab_change = 1
> >
> >
> > But here it is `tab_change`.
> >
> >
> > +:   exec "tabnext " . a:tab
> > +: endif
> > +: let bufname = fnamemodify(bufname(winbufnr(a:win)), mod)
> > +: if tab_changed
> > +:   tabprevious
> > +: endif
>
> Oops, Thanks for your quick reporting!
> I update a Gist.
>
> --
> Best regards,
> Hirohito Higashi (a.k.a h_east)
>
> --
> --
> 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.
>

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