import { fn } from "https://deno.land/x/ddc_vim@v4.1.0/deps.ts";
const { tabpagewinnr } = fn;
Like winnr()
but for tab page {tabarg}.
{tabarg} specifies the number of tab page to be used.
{arg} is used like with winnr()
:
-
When omitted the current window number is returned. This is the window which will be used when going to this tab page.
-
When "$" the number of windows is returned.
-
When "#" the previous window nr is returned. Useful examples:
tabpagewinnr(1) " current window of tab page 1 tabpagewinnr(4, '$') " number of windows in tab page 4
When {tabarg} is invalid zero is returned.
Can also be used as a method
:
GetTabpage()->tabpagewinnr()