8131017: jshell tool: pasting code with tabs invokes tab completion

Enabling copy-paste detection.

Reviewed-by: lagergren, rfield, sundar
This commit is contained in:
Jan Lahoda 2016-05-24 16:02:46 +02:00
parent 7bcc48f00e
commit c4dedff7c1

View File

@ -97,6 +97,7 @@ class ConsoleIOContext extends IOContext {
}
});
in.setBellEnabled(true);
in.setCopyPasteDetection(true);
in.addCompleter(new Completer() {
private String lastTest;
private int lastCursor;