Skip to main content
Module

x/ddc_vim/deps.ts>fn.strdisplaywidth

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.strdisplaywidth
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { strdisplaywidth } = fn;

The result is a Number, which is the number of display cells String {expr} occupies on the screen when it starts at {col} (first column is zero). When {col} is omitted zero is used. Otherwise it is the screen column where to start. This matters for Tab characters. The option settings of the current window are used. This matters for anything that's displayed differently, such as 'tabstop' and 'display'. When {expr} contains characters with East Asian Width Class Ambiguous, this function's return value depends on 'ambiwidth'. Also see |strlen()|, |strwidth()| and |strchars()|. Can also be used as a |method|: GetText()->strdisplaywidth()

Parameters

denops: Denops
expr: unknown
optional
col: unknown

Returns

Promise<unknown>