From ff0cec04608d522f120a08f99895fa2d312ce7be Mon Sep 17 00:00:00 2001 From: Nick Jensen Date: Mon, 20 Jul 2020 14:56:12 +1200 Subject: [PATCH] Use stdio guard properly --- autoload/OmniSharp/actions/fold.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/OmniSharp/actions/fold.vim b/autoload/OmniSharp/actions/fold.vim index 48fbc3780..10b487bf3 100644 --- a/autoload/OmniSharp/actions/fold.vim +++ b/autoload/OmniSharp/actions/fold.vim @@ -4,6 +4,7 @@ set cpoptions&vim function! OmniSharp#actions#fold#Create() abort if !g:OmniSharp_server_stdio echomsg 'This functionality is only available with the stdio server' + return endif call OmniSharp#actions#codestructure#Get(bufnr('%'), 1, \ function('s:CreateFolds'))