(line)
| 456 | } |
| 457 | |
| 458 | [kOnLine](line) { |
| 459 | if (this[kQuestionCallback]) { |
| 460 | const cb = this[kQuestionCallback]; |
| 461 | this[kQuestionCallback] = null; |
| 462 | this.setPrompt(this[kOldPrompt]); |
| 463 | cb(line); |
| 464 | } else { |
| 465 | this.emit('line', line); |
| 466 | } |
| 467 | } |
| 468 | |
| 469 | [kBeforeEdit](oldText, oldCursor) { |
| 470 | this[kPushToUndoStack](oldText, oldCursor); |