Skip to content

Commit

Permalink
Make API / Type / AST help compat with multi-line iinput
Browse files Browse the repository at this point in the history
  • Loading branch information
retronym committed Jun 6, 2021
1 parent 296578e commit fb421a9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ object Reader {
true
}
def show(text: String): Unit = {
reader.callWidget(LineReader.CLEAR)
reader.getTerminal.writer.println()
reader.getTerminal.writer.println(text)
reader.callWidget(LineReader.REDRAW_LINE)
Expand Down Expand Up @@ -354,6 +355,7 @@ class Completion(delegate: shell.Completion) extends shell.Completion with Compl
case exacts =>
val declStrings = exacts.map(_.declString()).filterNot(_ == "")
if (declStrings.nonEmpty) {
lineReader.callWidget(LineReader.CLEAR)
lineReader.getTerminal.writer.println()
for (declString <- declStrings)
lineReader.getTerminal.writer.println(declString)
Expand Down

0 comments on commit fb421a9

Please sign in to comment.