Skip to content

repl: fix preview cursor position - #31293

Closed
BridgeAR wants to merge 1 commit into
nodejs:masterfrom
BridgeAR:2020-01-10-repl-fix-preview-regression
Closed

repl: fix preview cursor position#31293
BridgeAR wants to merge 1 commit into
nodejs:masterfrom
BridgeAR:2020-01-10-repl-fix-preview-regression

Conversation

@BridgeAR

Copy link
Copy Markdown
Member

The cusor position was off in case the preview was exactly as long
as the current terminal was wide.
To fix the issue this switches the calculation from a relative value to an absolute one.

Fixes: #31291

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

The cusor position was off in case the preview was exactly as long
as the current terminal was wide.
Fixes: nodejs#31291
@nodejs-github-botnodejs-github-bot added the repl Issues and PRs related to the REPL subsystem. label Jan 10, 2020
@BridgeAR
BridgeAR requested a review from ZYSzysJanuary 10, 2020 15:04
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@BridgeARBridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jan 11, 2020
BridgeAR added a commit that referenced this pull request Jan 12, 2020
The cusor position was off in case the preview was exactly as long
as the current terminal was wide.
PR-URL: #31293Fixes: #31291
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@BridgeAR

Copy link
Copy Markdown
MemberAuthor

Landed in af5ddf2 🎉

MylesBorins pushed a commit that referenced this pull request Jan 16, 2020
The cusor position was off in case the preview was exactly as long
as the current terminal was wide.
PR-URL: #31293Fixes: #31291
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@codebyterecodebytere mentioned this pull request Jan 16, 2020
@BridgeAR
BridgeAR deleted the 2020-01-10-repl-fix-preview-regression branch January 20, 2020 12:10
@codebytere

Copy link
Copy Markdown
Member

@BridgeAR this will need a manual backport - it's blocked on previous repl changes which haven't been able to land.

1 similar comment
@codebytere

Copy link
Copy Markdown
Member

@BridgeAR this will need a manual backport - it's blocked on previous repl changes which haven't been able to land.

@targostargos removed author ready PRs that have at least one approval, no pending requests for changes, and a CI started. backport-blocked-v12.x labels Apr 25, 2020
targos pushed a commit to targos/node that referenced this pull request Apr 25, 2020
The cusor position was off in case the preview was exactly as long
as the current terminal was wide.
PR-URL: nodejs#31293Fixes: nodejs#31291
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
targos pushed a commit that referenced this pull request Apr 28, 2020
The cusor position was off in case the preview was exactly as long
as the current terminal was wide.
PR-URL: #31293Fixes: #31291
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@targostargos mentioned this pull request May 2, 2020
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

replIssues and PRs related to the REPL subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

repl: bug when the length of preview output is exactly equal to the terminal width

7 participants

@BridgeAR@nodejs-github-bot@codebytere@Trott@antsmartian@ZYSzys@targos