pasting with 1.7.572.0 preview and fish causes strange behavior #13059

Closed
opened 2026-01-31 03:32:30 +00:00 by claunia · 8 comments
Owner

Originally created by @KotlinIsland on GitHub (Mar 17, 2021).

This doesn't happen in 1.6.10517.0 or when i switch to bash.

Environment

Windows build number: Win32NT             10.0.18363.0 Microsoft Windows NT 10.0.18363.0
Windows Terminal version (if applicable): 1.7.572.0

Any other software? Ubuntu-20.04, fish version 3.2.0

Steps to reproduce

paste a command into wt eg echo foo

Expected behavior

command is pasted as is

Actual behavior

foo^[[201~echo foo appears on the line and the foo^[[201~ part isn't able to be backspaced.

Originally created by @KotlinIsland on GitHub (Mar 17, 2021). This doesn't happen in 1.6.10517.0 or when i switch to bash. # Environment ```none Windows build number: Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0 Windows Terminal version (if applicable): 1.7.572.0 Any other software? Ubuntu-20.04, fish version 3.2.0 ``` # Steps to reproduce paste a command into wt eg `echo foo` # Expected behavior command is pasted as is # Actual behavior `foo^[[201~echo foo` appears on the line and the `foo^[[201~` part isn't able to be backspaced.
claunia added the Resolution-ExternalNeeds-Tag-Fix labels 2026-01-31 03:32:30 +00:00
Author
Owner

@DHowett commented on GitHub (Mar 17, 2021):

It looks like fish is requesting bracketed paste mode, but cannot handle bracketed paste mode.

It has asked us to include \e[200~ and \e[201~ so it knows where your pasted content started and ended, and we have done as it asked.

@DHowett commented on GitHub (Mar 17, 2021): It looks like fish is requesting bracketed paste mode, but cannot handle bracketed paste mode. It has asked us to include `\e[200~` and `\e[201~` so it knows where your pasted content started and ended, and we have done as it asked.
Author
Owner

@skyline75489 commented on GitHub (Mar 17, 2021):

I can't repro this locally with stock fish configuration. Is there any special configuration you're using that might relate to this?

@skyline75489 commented on GitHub (Mar 17, 2021): I can't repro this locally with stock fish configuration. Is there any special configuration you're using that might relate to this?
Author
Owner

@KotlinIsland commented on GitHub (Mar 17, 2021):

image
Colleague also experiencing the exact same behavior.

@KotlinIsland commented on GitHub (Mar 17, 2021): ![image](https://user-images.githubusercontent.com/65446343/111408933-c09b3600-8721-11eb-940d-4f94ef5b8751.png) Colleague also experiencing the exact same behavior.
Author
Owner

@skyline75489 commented on GitHub (Mar 17, 2021):

Yeah this is caused by #9034, which as @DHowett pointed out, is actually the correct thing to do. What's weird is that somehow fish does not handle the bracketed paste response correctly. So we need to know what's wrong on the fish side.

@skyline75489 commented on GitHub (Mar 17, 2021): Yeah this is caused by #9034, which as @DHowett pointed out, is actually the *correct* thing to do. What's weird is that somehow fish does not handle the bracketed paste response correctly. So we need to know what's wrong on the fish side.
Author
Owner

@skyline75489 commented on GitHub (Mar 17, 2021):

OK after upgrading fish to 3.2.0 I can repro this locally. This is indeed a shell issue. See https://github.com/fish-shell/fish-shell/issues/7770 . This should be fixed in 3.2.1 according to that thread.

@skyline75489 commented on GitHub (Mar 17, 2021): OK after upgrading fish to 3.2.0 I can repro this locally. This is indeed a shell issue. See https://github.com/fish-shell/fish-shell/issues/7770 . This should be fixed in 3.2.1 according to that thread.
Author
Owner

@skyline75489 commented on GitHub (Mar 17, 2021):

Meanwhile, you may choose to downgrade fish using:

sudo apt install fish=3.1.0-1.2 fish-common=3.1.0-1.2

This fixes the issue for me.

@skyline75489 commented on GitHub (Mar 17, 2021): Meanwhile, you may choose to *downgrade* fish using: ```text sudo apt install fish=3.1.0-1.2 fish-common=3.1.0-1.2 ``` This fixes the issue for me.
Author
Owner

@DHowett commented on GitHub (Mar 17, 2021):

@skyline75489 thanks so much!

/dup https://github.com/fish-shell/fish-shell/issues/7770

@DHowett commented on GitHub (Mar 17, 2021): @skyline75489 thanks so much! /dup https://github.com/fish-shell/fish-shell/issues/7770
Author
Owner

@ghost commented on GitHub (Mar 17, 2021):

Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!

@ghost commented on GitHub (Mar 17, 2021): Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13059