nodejs / nodejs/node

REPL cursor in big input 'stops' at top visible line

オープン
#59,938 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

confirmed-bug repl
主要言語
JavaScript
スター
122k
フォーク
37.3k
平均マージ
4日 2時間
マージ済み PR(30日)
283

説明

Version

v25.0.0-pre

Subsystem

repl

What steps will reproduce the bug?

When working with multiline inputs that have more lines than the terminal heights (in lines), moving all to the top of the big input causes the current lower part of the input to be rendered at all times. The cursor effectively moves up, the lower lines just stay the same instead of changing.

This happens when pressing up at the top visible line.

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior? Why is that the expected behavior?

The lines are changed.

What do you see instead?

Wrong cursor movement.

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

REPL のエントリポイントから開始し、ターミナルよりも高さのある複数行入力で問題を再現してから、最上部の表示行で Up を押します。カーソル移動と表示行の描画がどのように更新されるかを追跡します。カーソルが上に移動するにつれて下の行が正しく変化すれば完了です。

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

評価

技術スタック
javascript, nodejs
領域
cli
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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