1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 22:20:06 +08:00

fix(autosave): use checktime to avoid warning

This commit is contained in:
wsdjeg 2022-02-06 12:12:44 +08:00
parent 83a2004ed2
commit 225fc488c4

View File

@ -56,6 +56,7 @@ function! s:save_buffer(bufnr) abort
let lines = getbufline(a:bufnr, 1, "$")
call writefile(lines, bufname(a:bufnr))
call setbufvar(a:bufnr, "&modified", 0)
exe 'silent checktime ' . a:bufnr
endif
endfunction