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

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

๐Ÿ“š Standard module for denops.vim
Go to Latest
function term_getscrolled
import { term_getscrolled } from "https://deno.land/x/denops_std@v3.9.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<unknown>