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

x/ddc_vim/deps.ts>fn.changenr

Dark deno-powered completion framework for neovim/Vim
Go to Latest
function fn.changenr
import { fn } from "https://deno.land/x/ddc_vim@v4.0.2/deps.ts";
const { changenr } = fn;

Return the number of the most recent change. This is the same number as what is displayed with :undolist and can be used with the :undo command. When a change was made it is the number of that change. After redo it is the number of the redone change. After undo it is one less than the number of the undone change. Returns 0 if the undo list is empty.

Returns

Promise<number>