Skip to main content
Module

x/denops_std/function/mod.ts>prevnonblank

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

Return the line number of the first line at or above {lnum} that is not blank. Example: let ind = indent(prevnonblank(v:lnum - 1)) When {lnum} is invalid or there is no non-blank line at or above it, zero is returned. {lnum} is used like with |getline()|. Also see |nextnonblank()|. Can also be used as a |method|: GetLnum()->prevnonblank()

Parameters

denops: Denops
lnum: unknown

Returns

Promise<unknown>