From eec124ae6c521165ade75c85b8077ecf41b2bd06 Mon Sep 17 00:00:00 2001 From: Dmitry Batrak Date: Tue, 18 Feb 2014 11:28:34 +0400 Subject: [PATCH] IDEA-80056 Column selection mode improvement disable TypedHandlerDelegates for multicaret state, as they don't work properly now anyway --- .../com/intellij/codeInsight/editorActions/TypedHandler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/editorActions/TypedHandler.java b/platform/lang-impl/src/com/intellij/codeInsight/editorActions/TypedHandler.java index d825a624b6c3..2ced9a6b55b2 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/editorActions/TypedHandler.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/editorActions/TypedHandler.java @@ -138,7 +138,10 @@ public class TypedHandler extends TypedActionHandlerBase { Project project = CommonDataKeys.PROJECT.getData(dataContext); PsiFile file; - if (project == null || editor.isColumnMode() || (file = PsiUtilBase.getPsiFileInEditor(editor, project)) == null) { + if (project == null + || editor.isColumnMode() + || editor.getCaretModel().getAllCarets().size() > 1 + || (file = PsiUtilBase.getPsiFileInEditor(editor, project)) == null) { if (myOriginalHandler != null){ myOriginalHandler.execute(editor, charTyped, dataContext); }