Skip to main content
Latest
function fn.win_screenpos
import { fn } from "https://deno.land/x/denops_lsputil@v0.9.4/deps.ts";
const { win_screenpos } = fn;

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