import { fn } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { getchangelist } = fn;
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: BufNameArgReturns
Promise<ChangeList | []>