Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ddc_vim/deps.ts>fn.prevnonblank

Dark deno-powered completion framework for neovim/Vim8
Very Popular
Go to Latest
function fn.prevnonblank
import { fn } from "https://deno.land/x/ddc_vim@v2.5.1/deps.ts";
const { prevnonblank } = fn;

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>