Skip to main content
Module

x/ddc_vim/deps.ts>fn.changenr

Dark deno-powered completion framework for neovim/Vim
Latest
function fn.changenr
import { fn } from "https://deno.land/x/ddc_vim@v4.3.1/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>