#RUBY-11590 fixed

This commit is contained in:
Yuri
2012-07-20 18:15:35 +04:00
parent 304f4c6001
commit b489564997
@@ -151,6 +151,12 @@ public class CommentByBlockCommentHandler implements CodeInsightActionHandler {
else if (selectionModel.hasSelection()) {
int selectionStart = selectionModel.getSelectionStart();
int selectionEnd = selectionModel.getSelectionEnd();
if (commenter instanceof IndentedCommenter) {
final Boolean value = ((IndentedCommenter)commenter).forceIndentedLineComment();
if (value != null && value == Boolean.TRUE) {
selectionStart = myDocument.getLineStartOffset(myDocument.getLineNumber(selectionStart));
}
}
commentRange(selectionStart, selectionEnd, prefix, suffix, commenter);
}
else {