github / github/app

Copying lines from a file or change only copies part of the selected lines

Đang mở
#1,353 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Bugs
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
2.1k
Fork
153
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Short summary

Copying lines from a file or change only copies part of the selected lines

### Affected version or release

v1.0.6

### Installation context

_No response_

### What happened?

When copying code or text from a file view or a change (diff) in the app, only part of the selected lines are copied to the clipboard. For example, selecting multiple contiguous lines and issuing Copy (Cmd/Ctrl+C or context menu) results in the pasted content containing only some of the selected lines or a truncated portion of the selection. This breaks workflows where users need to copy code from the app into editors, PR descriptions, or external tools.

### Steps to reproduce

1. Open the GitHub app and navigate to a repository.
2. Open a file or a change/diff view.
3. Select multiple lines across the file or change (click+drag or shift+click).
4. Press Cmd/Ctrl+C or use the context menu to copy.
5. Paste into an external editor or text field and observe that only part of the selected lines were copied or the content is truncated.

### Expected behavior

All selected lines should be copied in full to the clipboard so that pasting reproduces the exact selected text.

### Additional context

App version and OS not provided by reporter. Related or potentially-relevant existing issues: https://github.com/github/app/issues/999 (double-click/highlight behavior in code review UI) and https://github.com/github/app/issues/607 (copy buttons on Linux AppImage). Reported via TechWatching on 2026-06-24.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Reproduce the problem in both file and diff views using the listed selection and copy steps, then locate the existing selection-to-clipboard handling. Done means copying contiguous selected lines preserves the complete selection when pasted into an external editor.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
desktop
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.