Pasting zero-width characters into PyREPL results in incorrect cursor position
未關閉
還沒有人認領這個 Issue。
stdlib
topic-repl
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 35.9k
- PR 合併指標
- PR 指標待擷取
描述
Bug report
Bug description:
To reproduce
Tested with Python 3.14 rc3 on Linux
- Open the new REPL
- Paste: ééééé
The paste-able string above is five letter 'e's each followed by \u0301. To create it use:
print('e\u0301' * 5)
The \u0301 is a combining mark with zero-width display length
Current behavior
The cursor position is five spaces after the pasted string
Expected behavior
The cursor position is immediately after the pasted string
CPython versions tested on:
3.14
Operating systems tested on:
Linux
Linked PRs
- gh-139254
- gh-140796
- gh-141166
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先在 Linux 上進行新的 REPL 重現,貼上 issue 中描述的組合標記字串,然後檢查游標位置。在採取行動前先檢閱連結的 PR gh-139254、gh-140796 和 gh-141166;完成的標準是游標緊接在已貼上字串之後。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- cli
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 35/100