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

Pasting also executes command #187

Open
safield opened this issue May 28, 2020 · 3 comments
Open

Pasting also executes command #187

safield opened this issue May 28, 2020 · 3 comments
Labels

Comments

@safield
Copy link

safield commented May 28, 2020

I am trying to copy a path in a command I am running.

When I paste the path, the terminal also "hits enter" because the half types command tries to run.

The desired behavior would be that pasting does not also hit enter.

@mskyaxl
Copy link
Owner

mskyaxl commented Jun 1, 2020

Hi @safield, are you sure that what you have in your clipboard is not containing the \n character? because if it does it looks like a normal behavior to me.
nevertheless I will look into mintty issues to see if someone reported something similar because wsl-terminal does not change the behavior of mintty. It just launches it.

@CharlesB2
Copy link

I believe a sane behaviour would be to sanitize input and remove \n at the end of a line

@mskyaxl
Copy link
Owner

mskyaxl commented Jul 10, 2020

As mentioned above, wsl-terminal just launches mintty. In my opinion it should not remove the \n at the end because sometimes you really want this behavior but of course, you can create an issue on mintty repo.

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

No branches or pull requests

3 participants