Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/mod.ts>foldclosedend

๐Ÿ“š Standard module for denops.vim
Go to Latest
function foldclosedend
import { foldclosedend } from "https://deno.land/x/denops_std@v5.0.2/function/mod.ts";

The result is a Number. If the line {lnum} is in a closed fold, the result is the number of the last line in that fold. If the line {lnum} is not in a closed fold, -1 is returned. {lnum} is used like with getline(). Thus "." is the current line, "'m" mark m, etc.

Can also be used as a method:

GetLnum()->foldclosedend()

Parameters

denops: Denops
lnum: unknown

Returns

Promise<number>