1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-08-17 16:31:45 +02:00

Compare commits

...

2 Commits
0.40 ... 0.41

Author SHA1 Message Date
Andrey Vlasovskikh
68c20ed48d Version 0.41 2015-06-10 15:42:02 +03:00
Andrey Vlasovskikh
c5760ceaab VIM-957 Fixed compatibility with IDEs other than IntelliJ 2015-06-10 15:41:33 +03:00
4 changed files with 16 additions and 3 deletions

View File

@@ -4,6 +4,15 @@ The Changelog
History of changes in IdeaVim for the IntelliJ platform. History of changes in IdeaVim for the IntelliJ platform.
0.41, 2015-06-10
----------------
A bugfix release.
* VIM-957 Fixed plugin version 0.40 is not compatible with IDEs other than
IntelliJ
0.40, 2015-06-09 0.40, 2015-06-09
---------------- ----------------

View File

@@ -1,4 +1,4 @@
version-id:0.40 version-id:0.41
platform-version:135.0 platform-version:135.0
idea.download.url=http://download.jetbrains.com/idea/ideaIU-14.0.2.zip idea.download.url=http://download.jetbrains.com/idea/ideaIU-14.0.2.zip
build.number=dev build.number=dev

View File

@@ -2,6 +2,10 @@
<name>IdeaVim</name> <name>IdeaVim</name>
<id>IdeaVIM</id> <id>IdeaVIM</id>
<change-notes><![CDATA[ <change-notes><![CDATA[
<p>0.41:</p>
<ul>
<li>Various bug fixes</li>
</ul>
<p>0.40:</p> <p>0.40:</p>
<ul> <ul>
<li>Support for <code>mapleader</code></li> <li>Support for <code>mapleader</code></li>

View File

@@ -25,7 +25,7 @@ import com.intellij.openapi.util.Pair;
import com.intellij.psi.PsiComment; import com.intellij.psi.PsiComment;
import com.intellij.psi.PsiElement; import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile; import com.intellij.psi.PsiFile;
import com.intellij.psi.util.*; import com.intellij.psi.util.PsiTreeUtil;
import com.maddyhome.idea.vim.common.TextRange; import com.maddyhome.idea.vim.common.TextRange;
import com.maddyhome.idea.vim.option.ListOption; import com.maddyhome.idea.vim.option.ListOption;
import com.maddyhome.idea.vim.option.OptionChangeEvent; import com.maddyhome.idea.vim.option.OptionChangeEvent;
@@ -166,7 +166,7 @@ public class SearchHelper {
} }
private static int findMatchingBlockCommentPair(@NotNull PsiElement element, int pos) { private static int findMatchingBlockCommentPair(@NotNull PsiElement element, int pos) {
final Language language = PsiUtil.findLanguageFromElement(element); final Language language = element.getLanguage();
final Commenter commenter = LanguageCommenters.INSTANCE.forLanguage(language); final Commenter commenter = LanguageCommenters.INSTANCE.forLanguage(language);
final PsiComment comment = PsiTreeUtil.getParentOfType(element, PsiComment.class, false); final PsiComment comment = PsiTreeUtil.getParentOfType(element, PsiComment.class, false);
if (comment != null) { if (comment != null) {