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

Weird pasting multiline text behavior #3272

Closed
versacodes opened this issue Apr 27, 2024 · 2 comments
Closed

Weird pasting multiline text behavior #3272

versacodes opened this issue Apr 27, 2024 · 2 comments

Comments

@versacodes
Copy link

versacodes commented Apr 27, 2024

Description of the problem or steps to reproduce

Why does copy pasting leads to this behavior? I selected the text as shown in the first image then, pasted in a new line aligned from the previous text. But the copied second line now has 2 tabs. instead of 1. I expected the pasted text to be the same as the first image also. It should be aligned.

Copied text:
m1

Pasted text
m2

Specifications

Micro Version: 2.0.11

Commit hash:
OS: Debian GNU/Linux 12 (bookworm)
Terminal: kitty

@dmaluka
Copy link
Collaborator

dmaluka commented Apr 27, 2024

It is a feature. To disable it, disable the smartpaste option.

* `smartpaste`: add leading whitespace when pasting multiple lines.
   This will attempt to preserve the current indentation level when pasting an
   unindented block.

    default value: `true`

@versacodes
Copy link
Author

Thanks! This solved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants