mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-19 01:47:52 +00:00
8169595: jshell tool: pasting multiple lines hangs input
Need to allow newlines in the user's input. Reviewed-by: rfield
This commit is contained in:
parent
9889b22056
commit
eab488fc01
@ -3222,7 +3222,7 @@ public class ConsoleReader
|
||||
}
|
||||
//where:
|
||||
private Pattern CURSOR_COLUMN_PATTERN =
|
||||
Pattern.compile("(?<prefix>.*)\033\\[[0-9]+;(?<column>[0-9]+)R");
|
||||
Pattern.compile("(?<prefix>.*)\033\\[[0-9]+;(?<column>[0-9]+)R", Pattern.DOTALL);
|
||||
|
||||
/**
|
||||
* Read a line for unsupported terminals.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user