mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-199695 XML commenter should place the block comment prefix at the beginning of the line when commenting out a line
This commit is contained in:
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user