Skip to content

Bug Report - Pasting text adds new line between each line #1454

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

Closed
Taubin opened this issue Jun 23, 2019 · 2 comments
Closed

Bug Report - Pasting text adds new line between each line #1454

Taubin opened this issue Jun 23, 2019 · 2 comments
Labels
Area-Input Related to input processing (key presses, mouse, etc.) Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@Taubin
Copy link

Taubin commented Jun 23, 2019

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1715.0

Any other software? Ubuntu-18

Steps to reproduce

Open a new termanal window with the Ubuntu 18.04 app from the MS store. Copy a multi-line file from notepad or vs code. Paste the multi-line file into the terminal.

Expected behavior

I expect the file to paste as I have copied it, with no extra spaces or new lines added.

Actual behavior

The pasted file has new lines between each line when pasted.

Example:

Copy the following into terminal

version: '3'
services:
  gogs:
    image: gogs/gogs:latest
    ports:
      - "10022:22"
      - "3000:3000"
    volumes:
      - ./data/gogs:/data
    depends_on:
      - mysql
  mysql:
    image: mysql:5.7.16
    volumes:
      - ./gogs/mysql:/var/lib/mysql
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - 3308:3306
    environment:
      MYSQL_DATABASE: gogs

Results when pasted into terminal:

version: '3'                                                                                                                                                                                                                                                                                                                                    

services:                                                                                                                                                                                                                                                                                                                                         

gogs:                                                                                                                                                                      

    image: gogs/gogs:latest                                                                                                                                                                                                                                                                                                                         

ports:   

- "10022:22"         

- "3000:3000"         

volumes:

      - ./data/gogs:/data

    depends_on:

      - mysql

  mysql:

    image: mysql:5.7.16

    volumes:

      - ./gogs/mysql:/var/lib/mysql

      - /var/run/docker.sock:/var/run/docker.sock

    ports:

      - 3308:3306

    environment:

      MYSQL_ROOT_PASSWORD:

      MYSQL_DATABASE: gogs

      MYSQL_USER:

      MYSQL_PASSWORD:

      TZ: Pacific/Auckland
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Jun 23, 2019
@wernersv
Copy link

This seems to be related to the Windows line ending.
It doesn't happen to me if it is set to Unix .
Empty lines are inserted if the source uses <CR+LF>

@DHowett-MSFT
Copy link
Contributor

Looks like a dupe of #1091

@DHowett-MSFT DHowett-MSFT added Area-Input Related to input processing (key presses, mouse, etc.) Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Product-Terminal The new Windows Terminal. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. Issue-Bug It either shouldn't be doing this or needs an investigation. labels Jun 24, 2019
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Jun 24, 2019
@DHowett-MSFT DHowett-MSFT removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Input Related to input processing (key presses, mouse, etc.) Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Product-Terminal The new Windows Terminal. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

3 participants