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'))