From a98b324a016f722a2d3e2a344074b3cdb3dbe390 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 11 Sep 2022 21:08:41 +0800 Subject: [PATCH] fix(flygrep): silent update history --- autoload/SpaceVim/plugins/flygrep.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/SpaceVim/plugins/flygrep.vim b/autoload/SpaceVim/plugins/flygrep.vim index d43f0bd73..f93a7214f 100644 --- a/autoload/SpaceVim/plugins/flygrep.vim +++ b/autoload/SpaceVim/plugins/flygrep.vim @@ -76,9 +76,9 @@ function! s:update_history() abort endif call add(s:grep_history, s:grep_expr) if !isdirectory(expand(g:spacevim_data_dir.'SpaceVim')) - call mkdir(expand(g:spacevim_data_dir.'SpaceVim')) + silent call mkdir(expand(g:spacevim_data_dir.'SpaceVim')) endif - call writefile([s:JSON.json_encode(s:grep_history)], expand(g:spacevim_data_dir.'SpaceVim/flygrep_history')) + silent call writefile([s:JSON.json_encode(s:grep_history)], expand(g:spacevim_data_dir.'SpaceVim/flygrep_history')) endfunction let s:grep_history = s:read_histroy() let s:complete_input_history_num = [0,0]