| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -252,9 +252,6 @@ function Interface(input, output, completer, terminal) { | |||
| 252 | 252 | input.on('keypress', onkeypress); | |
| 253 | 253 | input.on('end', ontermend); | |
| 254 | 254 | ||
| 255 | - // Current line | ||
| 256 | - this.line = ''; | ||
| 257 | - | ||
| 258 | 255 | this._setRawMode(true); | |
| 259 | 256 | this.terminal = true; | |
| 260 | 257 | ||
@@ -270,6 +267,9 @@ function Interface(input, output, completer, terminal) { | |||
| 270 | 267 | self.once('close', onSelfCloseWithTerminal); | |
| 271 | 268 | } | |
| 272 | 269 | ||
| 270 | + // Current line | ||
| 271 | + this.line = ''; | ||
| 272 | + | ||
| 273 | 273 | input.resume(); | |
| 274 | 274 | } | |
| 275 | 275 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,7 @@ | |||
| 1 | + 'use strict'; | ||
| 2 | + const common = require('../common'); | ||
| 3 | + | ||
| 4 | + const repl = require('repl'); | ||
| 5 | + const r = repl.start({ terminal: false }); | ||
| 6 | + r.setupHistory('/nonexistent/file', common.mustSucceed()); | ||
| 7 | + process.stdin.unref?.(); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments