mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:20:05 +08:00
fix(flygrep): silent update history
This commit is contained in:
parent
7b4580c1c7
commit
a98b324a01
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user