Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

i_ctrl-e and i_ctrl-y don't work correctly with virtual text #33206

Copy link
Copy link
Open
@Nekketsu

Description

@Nekketsu
Issue body actions

Problem

When I want to write in insert mode characters from the line above i_ctrl-y or below i_ctrl-e the cursor, and there is virtual text, it takes into account the position of the virtual text and copies the first real character until the virtual text is advanced.
For instance:

Image

When I press ctrl-y in insert mode, for each position of the virtual text value: it writes the first real character after it h. Then it continues writing the text in the line above the cursor:

Image

It has the same behavior with ctrl-e in insert mode, but with the line below.

Steps to reproduce

Write a line of text that has virtual text.
Try to write in in another line by using i_ctrl-y or i_ctrl-e.

Expected behavior

It should copy the real text, ignoring the virtual text position.

Nvim version (nvim -v)

0.11

Vim (not Nvim) behaves the same?

Not tested

Operating system/version

Windows 10.0.19045.0

Terminal name/version

Windows Terminal (it happens to me with any terminal

$TERM environment variable

Not setted

Installation

github releases

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-vimwrong behavior inherited from vimwrong behavior inherited from viminsert-modemarksmarks, extmarks, decorations, virtual textmarks, extmarks, decorations, virtual textneeds:discussionissue needs attention from an expert, or PR proposes significant changes to architecture or APIissue needs attention from an expert, or PR proposes significant changes to architecture or API

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.