Unverified Commit 5bef38b6 authored by Prince J Wesley's avatar Prince J Wesley
Browse files

repl: Auto alignment for .editor mode

When in `.editor` mode, current line whitespace prefixes
are preserved in the subsequent line. User can hit backspace
to clean the whitespace

```js
node 🙈 ₹ node
> .editor
// Entering editor mode (^D to finish, ^C to cancel)
function test() {
  console.log('tested!'); //On enter, cursor will be after 2 spaces
  _
```

PR-URL: https://github.com/nodejs/node/pull/8241


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent f8f283b8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment