Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddu_vim/deps.ts>fn.nextnonblank

Dark deno-powered UI framework for neovim/Vim
Go to Latest
function fn.nextnonblank
import { fn } from "https://deno.land/x/ddu_vim@v4.0.0/deps.ts";
const { nextnonblank } = fn;

Return the line number of the first line at or below {lnum} that is not blank. Example:

if getline(nextnonblank(1)) =~ "Java"

When {lnum} is invalid or there is no non-blank line at or below it, zero is returned. {lnum} is used like with getline(). See also prevnonblank().

Can also be used as a method:

GetLnum()->nextnonblank()

Parameters

denops: Denops
lnum: unknown

Returns

Promise<number>