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

paste content in nano removes new lines #1959

Open
ciokan opened this issue Nov 5, 2020 · 3 comments · May be fixed by #2248
Open

paste content in nano removes new lines #1959

ciokan opened this issue Nov 5, 2020 · 3 comments · May be fixed by #2248

Comments

@ciokan
Copy link

ciokan commented Nov 5, 2020

I have this strange behavior in nano using the Tilix terminal (works in another terminal) where, if I paste something, the new lines are completely removed, content is wrapped and new lines are created but based on the dimensions of the terminal window. /bin/bash is selected for both terminals and I don't know what to look for any more.

For example when pasting:

#!/bin/bash
valid=true
count=1
while [ $valid ]
do
echo $count
if [ $count -eq 5 ];
then
break
fi
((count++))
done

I get:

!/bin/bash
valid=true count=1 while [ $valid ] do echo $count if [ $count -eq 5 ]; then break fi ((count++))
done

Tested both on manjaro and elementary os (ubuntu 18) and only tilix does this. Completely unusable since many of us rely on nano heavily.

@vlad88sv
Copy link

Hi this is still happening in 1.9.1 when pasting on multiple terminals: only the one with the focus actually paste the content including the new lines

@vlad88sv
Copy link

Hi this is still an issue in 1.9.4

@thereisnotime
Copy link

Pasting in Manjaro with 1.9.4 still breaks the line endings

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

Successfully merging a pull request may close this issue.

3 participants