From 1dcf5d3da3dfa4d4bcc8070d5e60053db8ae2cfe Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Thu, 8 Nov 2018 14:56:38 +0300 Subject: [PATCH] IDEA-199695 XML commenter should place the block comment prefix at the beginning of the line when commenting out a line --- .../codeInsight/generation/CommentByLineCommentHandler.java | 1 - 1 file changed, 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/generation/CommentByLineCommentHandler.java b/platform/lang-impl/src/com/intellij/codeInsight/generation/CommentByLineCommentHandler.java index 468e72daa0e5..3e4c0ff8f049 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/generation/CommentByLineCommentHandler.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/generation/CommentByLineCommentHandler.java @@ -651,7 +651,6 @@ public class CommentByLineCommentHandler extends MultiCaretCodeInsightActionHand if (endOffset == offset && block.startLine != block.endLine) return true; final int textLength = document.getTextLength(); final CharSequence chars = document.getCharsSequence(); - offset = CharArrayUtil.shiftForward(chars, offset, " \t"); if (endOffset == textLength) { final int shifted = CharArrayUtil.shiftBackward(chars, textLength - 1, " \t") + 1; if (shifted < textLength) endOffset = shifted;