-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
repl: changes ctrl+u to delete from cursor to line start #20686
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done! 😇
There was a problem hiding this 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?
Hey team! Is a doc update required for this or a test ? Do let me know. 😇 |
I don't think we document this key binding anywhere so no update needed. |
@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. |
Closes: nodejs#20145 PR-URL: nodejs#20686 Fixes: nodejs#20145 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Landed in eeb1d51 🎉 |
Closes: #20145
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
REPL / readline