diff options
author | Som Snytt <som.snytt@gmail.com> | 2015-07-20 17:07:51 -0700 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-09-02 12:45:29 +1000 |
commit | 1566196669bb74891a2116236b3e76ea340f6c29 (patch) | |
tree | fc857418f1ea580022dae0d833afb89a1bfa9002 /spec/index.md | |
parent | 5a23aac8c421fa017edb094563c552236be13c6f (diff) | |
download | scala-1566196669bb74891a2116236b3e76ea340f6c29.tar.gz scala-1566196669bb74891a2116236b3e76ea340f6c29.tar.bz2 scala-1566196669bb74891a2116236b3e76ea340f6c29.zip |
SI-5408 Prompt after incomplete script paste
Transcript paste mode invites the user to keep typing like
regular paste mode, but really you must enter more transcript.
This matters if the script ends in the middle of incomplete
code that the user wants to complete by hand.
Previously,
```
scala> scala> def f() = {
// Detected repl transcript paste: ctrl-D to finish.
// Replaying 1 commands from transcript.
scala> def f() = {
scala> scala> def f() = {
// Detected repl transcript paste: ctrl-D to finish.
| }
// Replaying 1 commands from transcript.
scala> def f() = {
}
f: ()Unit
```
Now,
```
scala> scala> def f() = {
// Detected repl transcript. Paste more, or ctrl-D to finish.
// Replaying 1 commands from transcript.
scala> def f() = {
| 42
| }
f: ()Int
scala> f()
res0: Int = 42
```
Diffstat (limited to 'spec/index.md')
0 files changed, 0 insertions, 0 deletions