elementary / elementary/code

Invisibles are copied with text

オープン
#1,057 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
Priority: Low
主要言語
Vala
スター
521
フォーク
118
平均マージ
1日 8時間
マージ済み PR(30日)
14

説明

## What Happened

This is a minor issue, but when you copy and paste text in Code, the invisible markers (spaces, tabs, newlines) come with it. The pasted text displays invisibles, even though it's not selected.

If I select and deselect the pasted text, the invisibles disappear as expected.

## Expected Behavior

Invisibles should not be pasted with the rest of the text, but instead should only be shown when selected like all other text

## Steps to Reproduce

1. Enter some text containing spaces (like `Hello World`)
2. Select that text. You'll see an invisible marker in the space between words when it's selected.
2. Copy that text
3. Paste it somewhere else in Code. You will see the invisible marker in the pasted text, even though it's not selected

### Logs

## Platform Information

Odin daily

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

非表示マーカーを有効にした状態でCodeでコピーと貼り付けの手順を再現し、その後エディターのコピーと貼り付けの動作を追跡して、選択時にのみ適用される表示状態がどこに保持されているかを見つけます。貼り付けたテキストが選択されている場合にのみ非表示文字を表示し、元のテキストの既存の動作と一致すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

領域
desktop
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。