sourcegraph icon indicating copy to clipboard operation
sourcegraph copied to clipboard

Not to include deleted lines when selecting code in commit diff view.

Open rakeshjosh2003 opened this issue 3 years ago • 1 comments

Feedback

Currently, when code is highlighted while selecting the lines in a multi-line code diff where a line is deleted, on selecting/copying, it copies the extra text with deleted line.

https://user-images.githubusercontent.com/102702631/207221179-071168d9-63ef-4d99-bfbc-0082d1ccf17f.mov

Attaching a short video for reference.

Customer

https://sourcegraph2020.lightning.force.com/lightning/r/Account/0013t00001XibW6AAJ/view

/cc @felixfbecker

rakeshjosh2003 avatar Dec 13 '22 03:12 rakeshjosh2003

Also in the unified view, it shows "deleted lines" and "added lines" when the code is copied. Attaching the video for reference.

https://user-images.githubusercontent.com/102702631/207254539-a9bb7bdd-d84c-4570-881d-d90a66ffc99c.mov

rakeshjosh2003 avatar Dec 13 '22 07:12 rakeshjosh2003