Commit cbd8dabe authored by Egor Ushakov's avatar Egor Ushakov
Browse files

IDEA-189423 Unexpected tokens error in multiline condition

parent 7313c0b3
Branches unavailable Tags unavailable
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -7,7 +7,6 @@ import com.intellij.ide.util.PropertiesComponent;
import com.intellij.lang.Language;
import com.intellij.lang.LanguageUtil;
import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.application.WriteAction;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.FoldRegion;
......@@ -441,9 +440,10 @@ public abstract class XDebuggerEditorBase implements Expandable {
}
}, KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, InputEvent.CTRL_MASK))))
.setCancelCallback(() -> {
setExpression(expressionEditor.getExpression());
requestFocusInEditor();
Editor baseEditor = getEditor();
if (baseEditor != null) {
WriteAction.run(() -> baseEditor.getDocument().setText(expressionEditor.getExpression().getExpression()));
foldNewLines((EditorEx)baseEditor);
Editor newEditor = expressionEditor.getEditor();
if (newEditor != null) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment