mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-22 17:05:42 +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, "$")
|
let lines = getbufline(a:bufnr, 1, "$")
|
||||||
call writefile(lines, bufname(a:bufnr))
|
call writefile(lines, bufname(a:bufnr))
|
||||||
call setbufvar(a:bufnr, "&modified", 0)
|
call setbufvar(a:bufnr, "&modified", 0)
|
||||||
|
exe 'silent checktime ' . a:bufnr
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user