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

Remove indentation of pasted text only when there are multiple non-whitespace lines #168

Closed
kindermannhubert opened this issue Mar 19, 2022 · 0 comments · Fixed by #172
Closed
Labels
bug Something isn't working

Comments

@kindermannhubert
Copy link
Collaborator

kindermannhubert commented Mar 19, 2022

Current condition for removing common indentation is that there are multiple lines and there is at least one non-empty line. I would change it to there are multiple non-whitespace lines.

Current behavior is not desired e.g. for single lines with \n in the end (the typical result of Ctrl+X without selection). When indentation is removed then after pressing Ctrl+X and Ctrl+V we will not get the same content as before.

@kindermannhubert kindermannhubert added the bug Something isn't working label Mar 19, 2022
@kindermannhubert kindermannhubert changed the title Remove indentation of pasted only when there are multiple non-whitespace lines Remove indentation of pasted text only when there are multiple non-whitespace lines Mar 19, 2022
kindermannhubert added a commit to kindermannhubert/PrettyPrompt that referenced this issue Mar 19, 2022
kindermannhubert added a commit that referenced this issue Mar 19, 2022
…ancement

Remove indentation of pasted text only when there are multiple non-whitespace lines (#168).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant