Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repl: changes ctrl+u to delete from cursor to line start #20686

Closed

Conversation

shobhitchittora
Copy link
Contributor

@shobhitchittora shobhitchittora commented May 12, 2018

Closes: #20145

  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

REPL / readline

@nodejs-github-bot nodejs-github-bot added the readline Issues and PRs related to the built-in readline module. label May 12, 2018
Copy link
Member

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo the comment about the, ah, comment.

lib/readline.js Outdated
@@ -796,9 +796,7 @@ Interface.prototype._ttyWrite = function(s, key) {
break;

case 'u': // delete the whole line
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update or remove the comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done! 😇

@lpinca
Copy link
Member

lpinca commented May 12, 2018

@lpinca lpinca added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 12, 2018
Copy link
Member

@jasnell jasnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bug fix or semver-major?

@BridgeAR BridgeAR added the semver-major PRs that contain breaking changes and should be released in the next major version. label May 13, 2018
@shobhitchittora
Copy link
Contributor Author

Hey team! Is a doc update required for this or a test ? Do let me know. 😇

@bnoordhuis
Copy link
Member

I don't think we document this key binding anywhere so no update needed.

@BridgeAR
Copy link
Member

@bnoordhuis I guess this could land without the docs but on the other hand it would also nice to document all key bindings properly. Even though that could happen in another PR.

@shobhitchittora
Copy link
Contributor Author

@BridgeAR tracking doc update here - #20814

BridgeAR pushed a commit to BridgeAR/node that referenced this pull request May 18, 2018
Closes: nodejs#20145

PR-URL: nodejs#20686
Fixes: nodejs#20145
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
@BridgeAR
Copy link
Member

Landed in eeb1d51 🎉

@BridgeAR BridgeAR closed this May 18, 2018
@shobhitchittora shobhitchittora deleted the repl-ctrl-u-delete-left branch May 18, 2018 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. readline Issues and PRs related to the built-in readline module. semver-major PRs that contain breaking changes and should be released in the next major version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants