Skip to content

Commit 5ee8914

Browse files
committed
Do not beep when toggling batch mode
Fixes #479
1 parent f20cef3 commit 5ee8914

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

autoload/startify.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,10 @@ function! startify#set_mark(type, ...) abort
918918
let index = expand('<cword>')
919919
setlocal modifiable
920920

921+
" https://github.com/vim/vim/issues/8053
922+
let showmatch = &showmatch
923+
let &showmatch = 0
924+
921925
if entry.marked && index[0] == a:type
922926
let entry.cmd = 'edit'
923927
let entry.marked = 0
@@ -930,6 +934,8 @@ function! startify#set_mark(type, ...) abort
930934
execute 'normal! "_ci]'. repeat(a:type, len(index))
931935
endif
932936

937+
let &showmatch = showmatch
938+
933939
setlocal nomodifiable nomodified
934940
" Reset cursor to fixed column, which is important for s:set_cursor().
935941
call cursor(origline, s:fixed_column)

0 commit comments

Comments
 (0)