8131017: jshell tool: pasting code with tabs invokes tab completion
authorjlahoda
Tue, 24 May 2016 16:02:46 +0200
changeset 38541 44e95493fd13
parent 38540 0668586535f1
child 38542 5e3480add088
8131017: jshell tool: pasting code with tabs invokes tab completion Summary: Enabling copy-paste detection. Reviewed-by: lagergren, rfield, sundar
langtools/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java
--- a/langtools/src/jdk.jshell/share/classes/jdk/internal/jshell/tool/ConsoleIOContext.java	Mon May 23 13:05:04 2016 -0700
+++ b/langtools/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;