From 7e1f936caeaf8b36c852db2eaf78c5a2b1fdf408 Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Mon, 26 Nov 2018 18:29:47 +0300 Subject: [PATCH] IDEA-202946 vcs: enable "History for Selection" without selection --- .../vcs-api/src/com/intellij/vcsUtil/VcsSelectionUtil.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/platform/vcs-api/src/com/intellij/vcsUtil/VcsSelectionUtil.java b/platform/vcs-api/src/com/intellij/vcsUtil/VcsSelectionUtil.java index f1d323f05d8a..c29362858e11 100644 --- a/platform/vcs-api/src/com/intellij/vcsUtil/VcsSelectionUtil.java +++ b/platform/vcs-api/src/com/intellij/vcsUtil/VcsSelectionUtil.java @@ -37,9 +37,6 @@ public class VcsSelectionUtil { Editor editor = context.getEditor(); if (editor == null) return null; SelectionModel selectionModel = editor.getSelectionModel(); - if (!selectionModel.hasSelection()) { - return null; - } return new VcsSelection(editor.getDocument(), selectionModel); } } \ No newline at end of file