Skip to main content
Module

x/denops_std/function/buffer.ts>getchangelist

📚 Standard module for denops.vim
Go to Latest
function getchangelist
import { getchangelist } from "https://deno.land/x/denops_std@v6.4.0/function/buffer.ts";

Returns the changelist for the buffer {buf}. For the use of {buf}, see bufname() above. If buffer {buf} doesn't exist, an empty list is returned.

The returned list contains two entries: a list with the change locations and the current position in the list. Each entry in the change list is a dictionary with the following entries: col column number coladd column offset for 'virtualedit' lnum line number If buffer {buf} is the current buffer, then the current position refers to the position in the list. For other buffers, it is set to the length of the list.

Can also be used as a method:

GetBufnr()->getchangelist()

Parameters

denops: Denops
optional
buf: BufNameArg

Returns

Promise<ChangeList | []>