changeset 3431:0f81cdd51b42 jdk-9+120

8131017: jshell tool: pasting code with tabs invokes tab completion Summary: Enabling copy-paste detection. Reviewed-by: lagergren, rfield, sundar
author jlahoda
date Tue, 24 May 2016 16:02:46 +0200
parents dec94c8de74e
children 2f500ac6a6fe 5b344cfeb8c8
files src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java	Mon May 23 13:05:04 2016 -0700
+++ b/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java	Tue May 24 16:02:46 2016 +0200
@@ -97,6 +97,7 @@
             }
         });
         in.setBellEnabled(true);
+        in.setCopyPasteDetection(true);
         in.addCompleter(new Completer() {
             private String lastTest;
             private int lastCursor;