From b808b8126ae3aa9123920cbe00897e70931ed4f4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 3 Aug 2024 18:36:59 +0800 Subject: [PATCH] fix(opt): check belloff opt belloff require vim 7.4.793 close https://github.com/SpaceVim/SpaceVim/issues/4930 --- autoload/SpaceVim/default.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/autoload/SpaceVim/default.vim b/autoload/SpaceVim/default.vim index 72d5abcb3..b1a414f6d 100644 --- a/autoload/SpaceVim/default.vim +++ b/autoload/SpaceVim/default.vim @@ -140,8 +140,10 @@ function! SpaceVim#default#options() abort " Do not wrap lone lines set nowrap - " disable all bell - set belloff=all + if exists('&belloff') + " disable all bell + set belloff=all + endif set foldtext=SpaceVim#default#Customfoldtext()