You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SethTisue
changed the title
JLine 3: :paste is misbehaving; old-style continuation handling interferes
JLine 3: :paste is misbehaving (continuation prompt should be suppressed)
Mar 30, 2020
and this then applies to regular mode (good) but also to paste mode (bad). so that's the cause
to fix it, in ILoop#pasteCommand we need to setVariable(LineReader.SECONDARY_PROMPT_PATTERN, "") and then restore it when we're done. but ILoop doesn't have direct access to its org.jline.reader.LineReader, so I think we need to add a method to nsc.interpreter.jline.Reader that handles this (it can be a no-op when we're running without JLine involved, as during testing)
I verified that this does the trick if done unsafely using in.asInstanceOf[jline.Reader], now I just need to do that the right way
reported by @bishabosha at scala/scala#8036 (comment)
The text was updated successfully, but these errors were encountered: