setup proper lang console editor type; RUBY-19667 rails console soft wrap action enabled

This commit is contained in:
Dmitry.Krasilschikov
2017-06-20 16:03:30 +03:00
parent f8af0caa2c
commit bbba73ad1b
@@ -137,7 +137,7 @@ public class LanguageConsoleImpl extends ConsoleViewImpl implements LanguageCons
myCurrentEditor = myConsoleEditor;
Document historyDocument = ((EditorFactoryImpl)editorFactory).createDocument(true);
UndoUtil.disableUndoFor(historyDocument);
myHistoryViewer = (EditorEx)editorFactory.createViewer(historyDocument, getProject());
myHistoryViewer = (EditorEx)editorFactory.createViewer(historyDocument, getProject(), EditorKind.CONSOLE);
myHistoryViewer.getDocument().addDocumentListener(myDocumentAdapter);
myScrollBar.setOpaque(false);