Skip to content

Commit

Permalink
Suppress "No fold found" with :silent!
Browse files Browse the repository at this point in the history
  • Loading branch information
nickspoons committed Sep 23, 2024
1 parent a5ff8bd commit b761f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/db_ui.vim
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ augroup dbui
autocmd!
autocmd BufRead,BufNewFile *.dbout set filetype=dbout
autocmd BufReadPost *.dbout nested call db_ui#save_dbout(expand('<afile>'))
autocmd FileType dbout setlocal foldmethod=expr foldexpr=db_ui#dbout#foldexpr(v:lnum) | normal!zo
autocmd FileType dbout setlocal foldmethod=expr foldexpr=db_ui#dbout#foldexpr(v:lnum) | silent! normal!zo
autocmd FileType dbout,dbui autocmd BufEnter,WinEnter <buffer> stopinsert
augroup END

Expand Down

0 comments on commit b761f52

Please sign in to comment.