Skip to content

editor object in jsfile / jscommand fails to get selection #99

Closed
@twio142

Description

@twio142

The editor.getSelection() function seems to fail in jsfile or jscommand, no matter selected with insert or visual mode.

jscommand { console.log(editor.getSelection()) } gets nothing, no matter mapped in vimrc file or put in editor command line.

But editor.getCursor() works just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions