Skip to main content
Module

x/denops_std/function/mod.ts>win_move_statusline

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

Move window {nr}'s status line (i.e., the bottom border) by {offset} rows, as if being dragged by the mouse. {nr} can be a window number or window-ID. A positive {offset} moves down and a negative {offset} moves up. Moving a window's status line will change the height of the window and the height of other windows adjacent to the status line. The magnitude of movement may be smaller than specified (e.g., as a consequence of maintaining 'winminheight'). Returns TRUE if the window can be found and FALSE otherwise. Only works for the current tab page.

Can also be used as a method:

GetWinnr()->win_move_statusline(offset)

Parameters

denops: Denops
nr: unknown
offset: unknown

Returns

Promise<number>