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:
parent
83a2004ed2
commit
225fc488c4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user