changeset 38541:44e95493fd13

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 0668586535f1
children 5e3480add088
files langtools/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/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;