# HG changeset patch # User jlahoda # Date 1479114430 -3600 # Node ID 4128b2c679bdfee4d50ab69cb45927c7da5b8025 # Parent e4c2f100927ff0a4e3a481f5ff819d3db070ae96 8169595: jshell tool: pasting multiple lines hangs input Summary: Need to allow newlines in the user's input. Reviewed-by: rfield diff -r e4c2f100927f -r 4128b2c679bd jdk/src/jdk.internal.le/share/classes/jdk/internal/jline/console/ConsoleReader.java --- a/jdk/src/jdk.internal.le/share/classes/jdk/internal/jline/console/ConsoleReader.java Fri Nov 11 13:11:27 2016 +0000 +++ b/jdk/src/jdk.internal.le/share/classes/jdk/internal/jline/console/ConsoleReader.java Mon Nov 14 10:07:10 2016 +0100 @@ -3222,7 +3222,7 @@ } //where: private Pattern CURSOR_COLUMN_PATTERN = - Pattern.compile("(?.*)\033\\[[0-9]+;(?[0-9]+)R"); + Pattern.compile("(?.*)\033\\[[0-9]+;(?[0-9]+)R", Pattern.DOTALL); /** * Read a line for unsupported terminals.