Skip to main content
Module

x/denops_std/function/mod.ts>win_screenpos

📚 Standard module for denops.vim
Go to Latest
function win_screenpos
import { win_screenpos } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

Return the screen position of window {nr} as a list with two numbers: [row, col]. The first window always has position [1, 1], unless there is a tabline, then it is [2, 1]. {nr} can be the window number or the window-ID. Use zero for the current window. Returns [0, 0] if the window cannot be found in the current tabpage.

Can also be used as a method:

GetWinid()->win_screenpos()

Parameters

denops: Denops
nr: unknown

Returns

Promise<unknown[]>