Skip to main content
Latest
function fn.setcursorcharpos
import { fn } from "https://deno.land/x/denops_lsputil@v0.9.4/deps.ts";
const { setcursorcharpos } = fn;

Same as cursor() but uses the specified column number as the character index instead of the byte index in the line.

Example: With the text "여보세요" in line 4:

call setcursorcharpos(4, 3)

positions the cursor on the third character '세'.

call cursor(4, 3)

positions the cursor on the first character '여'.

Can also be used as a method:

GetCursorPos()->setcursorcharpos()

Parameters

denops: Denops
lnum: unknown
col: unknown
optional
off: unknown

Returns

Promise<number>

Parameters

denops: Denops
list: unknown

Returns

Promise<number>