Copy-Paste in some editors #16694

Closed
opened 2026-01-31 05:19:52 +00:00 by claunia · 3 comments
Owner

Originally created by @237dmitry on GitHub (Feb 7, 2022).

Windows Terminal version

1.13.10336.0

Windows build number

10.0.22000.0

Other Software

micro:

Version: 2.0.10
Commit hash: b9763856
Compiled on August 07, 2021

far:

Far Manager, version 3.0.5961.0 x64
Copyright © 1996-2000 Eugene Roshal, Copyright © 2000-2022 Far Group

Steps to reproduce

Paste copied text that contains leading spaces in an editor.

Expected Behavior

Text should be pasted as is, without corrupted formatting

Actual Behavior

Leading spaces grows with each line. The behavior is the same in both editors ( far -e micro )
This is not observed in any other terminal where launched editor.

micro

Originally created by @237dmitry on GitHub (Feb 7, 2022). ### Windows Terminal version 1.13.10336.0 ### Windows build number 10.0.22000.0 ### Other Software micro: ``` Version: 2.0.10 Commit hash: b9763856 Compiled on August 07, 2021 ``` far: ``` Far Manager, version 3.0.5961.0 x64 Copyright © 1996-2000 Eugene Roshal, Copyright © 2000-2022 Far Group ``` ### Steps to reproduce Paste copied text that contains leading spaces in an editor. ### Expected Behavior Text should be pasted as is, without corrupted formatting ### Actual Behavior Leading spaces grows with each line. The behavior is the same in both editors ( `far -e` `micro` ) This is not observed in any other terminal where launched editor. ![micro](https://user-images.githubusercontent.com/78153320/152793238-a343f205-5ed1-49cc-9164-ca9e9b8a2fa1.png)
claunia added the Issue-QuestionNeeds-TriageNeeds-Tag-FixResolution-Answered labels 2026-01-31 05:19:52 +00:00
Author
Owner

@lhecker commented on GitHub (Feb 7, 2022):

I can't replicate the issue with Far Manager 3.0.5961.0 x64.

micro indeed produces the behavior from the screenshot above. Curiously however this only happens when run natively under Windows. If you run micro with WSL2 inside Windows Terminal everything works as expected, even though we're still the exact same terminal. Could this perhaps be a bug in micro? Or are we just doing something slightly out of the ordinary? 🤔

@lhecker commented on GitHub (Feb 7, 2022): I can't replicate the issue with Far Manager 3.0.5961.0 x64. micro indeed produces the behavior from the screenshot above. Curiously however this only happens when run natively under Windows. If you run micro with WSL2 inside Windows Terminal everything works as expected, even though we're still the exact same terminal. Could this perhaps be a bug in micro? Or are we just doing something slightly out of the ordinary? 🤔
Author
Owner

@237dmitry commented on GitHub (Feb 7, 2022):

I can't replicate the issue with Far Manager 3.0.5961.0 x64

I turned off autoindent in far:config. And autoindent set to false in micro's settings.json And this solve the problem in both editors. I do not know why the terminal affects autoindent.

@237dmitry commented on GitHub (Feb 7, 2022): > I can't replicate the issue with Far Manager 3.0.5961.0 x64 I turned off autoindent in `far:config`. And autoindent set to false in micro's settings.json And this solve the problem in both editors. I do not know why the terminal affects autoindent.
Author
Owner

@zadjii-msft commented on GitHub (Feb 18, 2022):

relevant: #7041, #9034. I'd bet it's related to bracketed paste mode.

@zadjii-msft commented on GitHub (Feb 18, 2022): relevant: #7041, #9034. I'd bet it's related to bracketed paste mode.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16694