refactoring, support css zen-coding selectors
[idea/community.git] / platform / lang-impl / src / com / intellij / codeInsight / template / impl / SurroundWithTemplateHandler.java
index c6de17b41d824bedcf0dd97a7690dd13e153047f..329faae575a219a726bfc334105dd8a9fee3de8d 100644 (file)
@@ -77,7 +77,7 @@ public class SurroundWithTemplateHandler implements CodeInsightActionHandler {
     List<CustomLiveTemplate> result = new ArrayList<CustomLiveTemplate>();
     int offset = editor.getCaretModel().getOffset();
     for (CustomLiveTemplate template : CustomLiveTemplate.EP_NAME.getExtensions()) {
-      if (template.isApplicable(file, offset, true)) {
+      if (template.supportsWrapping() && template.isApplicable(file, offset)) {
         result.add(template);
       }
     }