Skip to content

Paste in neovim with Terminal cannot stop #19082

Closed
@mengq627

Description

@mengq627

Windows Terminal version

1.22.11141.0

Windows build number

10.0.22621.0

Other Software

neovim:
NVIM v0.11.0
Build type: Release
LuaJIT 2.1.1741730670

ssh:
OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2

linux:
5.10.0-182

Steps to reproduce

  1. Open Windows Terminal, use ssh to login a linux server which has installed neovim;
  2. Execute neovim .test in bash;
  3. Paste ratelimit one time/multi times by Shift+Insert;

Expected Behavior

Paste with correct words, like:
ratelimitratelimitratelimitratelimitratelimitratelimit

Actual Behavior

Some special characters appear:
ratelimitratelimitratelimitratelimitratelimitratelimit�[201~�[200~ratelimitratelimit

As you can see, it is accidental. If it happend when paste only once, it will show as ratelimit�[201~, in fact, ratelimit^[[201~,at now, I can not exit neovim paste mode/insert mode by esc, esc will show as ^[.

Then I paste again after again, ^[[200~ratelimit appear, I can exit neovim with esc now.

I can not reproduce this in tabby/Mobaxterm, I think it is a terminal bug.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-VTVirtual Terminal sequence supportIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-1A description (P1)Product-ConptyFor console issues specifically related to conpty

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions