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

x/denops_std/function/vim/mod.ts>term_getscrolled

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

Return the number of lines that scrolled to above the top of terminal {buf}. This is the offset between the row number used for term_getline() and getline(), so that:

term_getline(buf, N)

is equal to:

getline(N + term_getscrolled(buf))

(if that line exists).

{buf} is used as with term_getsize().

Can also be used as a method:

GetBufnr()->term_getscrolled()

Parameters

denops: Denops
buf: unknown

Returns

Promise<number>