diff --git a/src/main/java/com/maddyhome/idea/vim/group/copy/PutGroup.kt b/src/main/java/com/maddyhome/idea/vim/group/copy/PutGroup.kt index 958d64274..e4dc2c0ca 100644 --- a/src/main/java/com/maddyhome/idea/vim/group/copy/PutGroup.kt +++ b/src/main/java/com/maddyhome/idea/vim/group/copy/PutGroup.kt @@ -17,6 +17,7 @@ import com.intellij.openapi.actionSystem.PlatformDataKeys import com.intellij.openapi.editor.Caret import com.intellij.openapi.editor.RangeMarker import com.intellij.openapi.ide.CopyPasteManager +import com.intellij.util.PlatformUtils import com.maddyhome.idea.vim.VimPlugin import com.maddyhome.idea.vim.api.ExecutionContext import com.maddyhome.idea.vim.api.VimCaret @@ -146,6 +147,9 @@ class PutGroup : VimPutBase() { startOffset: Int, endOffset: Int, ): Int { + // Temp fix for VIM-2808. Should be removed after rider will fix it's issues + if (PlatformUtils.isRider()) return endOffset + val startLine = editor.offsetToBufferPosition(startOffset).line val endLine = editor.offsetToBufferPosition(endOffset - 1).line val startLineOffset = (editor as IjVimEditor).editor.document.getLineStartOffset(startLine)