in Ctrl-Shift-I, don't skip to second implementation if it's in the same file as the first one (PY-4477)

This commit is contained in:
Dmitry Jemerov
2011-11-15 18:58:44 +01:00
parent 37d698119d
commit 675344953f
@@ -186,7 +186,10 @@ public class ShowImplementationsAction extends AnAction implements PopupAction {
final VirtualFile virtualFile = file.getVirtualFile();
final PsiFile containingFile = impls[0].getContainingFile();
if (virtualFile != null && containingFile != null && virtualFile.equals(containingFile.getVirtualFile())) {
index = 1;
final PsiFile secondContainingFile = impls[1].getContainingFile();
if (secondContainingFile != containingFile) {
index = 1;
}
}
}