Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Invisibles are copied with text

未关闭
#1,057 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
领域
desktop

调研方向

在启用不可见标记的情况下,在 Code 中重现复制和粘贴步骤,然后跟踪编辑器的复制和粘贴行为,以找出仅在选中时显示的状态在哪里被保留。完成标准是:粘贴的文本仅在被选中时显示不可见字符,与原始文本现有的行为一致。

由索引模型根据 Issue 内容生成。

描述

Priority: Low

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.
  3. Copy that text
  4. 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

主要语言
Vala
星标
521
派生
119
平均合并
1 天 7 小时
30 天内合并 PR
13

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

elementary/code 的其他 Issue

查看 elementary/code 的全部 Issue

相似的 Issue

更多 Desktop Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。