From b761f524f063e7353f8c6d220aa9d0cd9d83f586 Mon Sep 17 00:00:00 2001 From: Nick Jensen Date: Mon, 23 Sep 2024 12:14:49 +1200 Subject: [PATCH] Suppress "No fold found" with :silent! --- plugin/db_ui.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/db_ui.vim b/plugin/db_ui.vim index 3dc178c..575d608 100644 --- a/plugin/db_ui.vim +++ b/plugin/db_ui.vim @@ -119,7 +119,7 @@ augroup dbui autocmd! autocmd BufRead,BufNewFile *.dbout set filetype=dbout autocmd BufReadPost *.dbout nested call db_ui#save_dbout(expand('')) - 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 stopinsert augroup END