Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy-Paste in some editors #12411

Closed
237dmitry opened this issue Feb 7, 2022 · 3 comments
Closed

Copy-Paste in some editors #12411

237dmitry opened this issue Feb 7, 2022 · 3 comments
Labels
Issue-Question For questions or discussion Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Answered Related to questions that have been answered

Comments

@237dmitry
Copy link

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

@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Feb 7, 2022
@lhecker
Copy link
Member

lhecker commented 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? 🤔

@237dmitry
Copy link
Author

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.

@zadjii-msft zadjii-msft added Issue-Question For questions or discussion Resolution-Answered Related to questions that have been answered labels Feb 8, 2022
@zadjii-msft
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Question For questions or discussion Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Answered Related to questions that have been answered
Projects
None yet
Development

No branches or pull requests

3 participants