Closed versacodes closed 2 months ago
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`
Thanks! This solved it.
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](https://github.com/zyedidia/micro/assets/114055827/9531acd0-2f95-4156-8f05-2be9ebfa7646)
Pasted text![m2](https://github.com/zyedidia/micro/assets/114055827/cbd5d879-c358-450e-82e9-1c88a32fc56e)
Specifications
Micro Version: 2.0.11
Commit hash: OS: Debian GNU/Linux 12 (bookworm) Terminal: kitty