Skip to content

repl: editor mode text not saved in .save command #8142

Description

@jcpst
  • Version: 6.4.0
  • Platform: Linux arch 4.7.0-1-ARCH #1 SMP PREEMPT Mon Aug 8 22:05:58 CEST 2016 x86_64 GNU/Linux
  • Subsystem: repl

The new editor mode is wonderful, but I'm unable to to save what was done in the editor mode using the .save command.

> const foo = 1
undefined
> const bar = 'two'
undefined
> .editor
// Entering editor mode (^D to finish, ^C to cancel)
function fooey () {
  return 'fooey'
}
undefined
> fooey()
'fooey'
> .save zzz.js
Session saved to:zzz.js

zzz.js:

const foo = 1
const bar = 'two'

fooey()

Activity

  1. added
    replIssues and PRs related to the REPL subsystem.
    on Aug 17, 2016
  2. addaleax commented on Aug 17, 2016

    @addaleax
    Member
  3. princejwesley commented on Aug 17, 2016

    @princejwesley
    Contributor

    @addaleax I'll share the fix shortly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues requesting new Node.js features.replIssues and PRs related to the REPL subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions