From 8d6192153fda7e35435d642bf5d4523c3ffe61a9 Mon Sep 17 00:00:00 2001 From: Dmitry Batrak Date: Mon, 4 Jun 2018 18:35:26 +0300 Subject: [PATCH] IDEA-192970 'Tab out' doesn't work for completed if/while/switch fix for PHP --- .../codeInsight/completion/util/ParenthesesInsertHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-api/src/com/intellij/codeInsight/completion/util/ParenthesesInsertHandler.java b/platform/lang-api/src/com/intellij/codeInsight/completion/util/ParenthesesInsertHandler.java index 7f781ba056c8..b5e6ff9e52e8 100644 --- a/platform/lang-api/src/com/intellij/codeInsight/completion/util/ParenthesesInsertHandler.java +++ b/platform/lang-api/src/com/intellij/codeInsight/completion/util/ParenthesesInsertHandler.java @@ -159,7 +159,7 @@ public abstract class ParenthesesInsertHandler implemen if (!putCaretInside) { editor.getCaretModel().moveToOffset(context.getTailOffset()); } - else if (!mySpaceBeforeParentheses) { + else if (!mySpaceBetweenParentheses) { TabOutScopesTracker.getInstance().registerEmptyScopeAtCaret(editor); } }