pyrepl loses input and mis-positions cursor when F2 is pressed
オープン
まだ誰も着手していません。
3.13
3.14
topic-repl
type-bug
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 35.9k
- PR マージ指標
- PR 指標を取得中
説明
Bug report
Bug description:
This is bad for 2 different reasons:
- pyrepl loses track of the cursor, thinking it's in the first column when it's actually in the middle of the screen somewhere, so future screen drawing operations have unexpected results
- on top of that, anything you were in the middle of typing when you pressed F2 is discarded, so if you wanted to access the history to copy something out and paste it into the command you're writing, oops, it's gone
CPython versions tested on:
3.13
Operating systems tested on:
Linux
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Linux 上で CPython 3.13 を使って pyrepl の F2 の動作を再現し、その後 F2 の処理と画面再描画のパスを追跡します。現在の入力が保持され、カーソルが正しく配置されたままになり、その後の画面描画が正常に動作すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100