REPL: disable event expansion

Fixes problems with exclamation marks inside string literals. No tests added
because it's tedious to test REPL as it is (via ConsoleReader)

 #KT-3940 Fixed
This commit is contained in:
Alexander Udalov
2014-07-27 16:51:59 -07:00
parent d54871746e
commit 8d2ab0fd52
@@ -58,6 +58,7 @@ public class ReplFromTerminal {
try {
consoleReader = new ConsoleReader("kotlin", System.in, System.out, null);
consoleReader.setHistoryEnabled(true);
consoleReader.setExpandEvents(false);
consoleReader.setHistory(new FileHistory(new File(new File(System.getProperty("user.home")), ".kotlin_history")));
}
catch (Exception e) {