Do init s:vimwiki_autowriteall_saved, but perhaps with the default value
Ref #492
This commit is contained in:
parent
f96d0c26d3
commit
7c5935b9ba
@ -14,6 +14,13 @@ let s:old_cpo = &cpo
|
|||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
|
|
||||||
|
if exists('g:vimwiki_autowriteall')
|
||||||
|
let s:vimwiki_autowriteall_saved = g:vimwiki_autowriteall
|
||||||
|
else
|
||||||
|
let s:vimwiki_autowriteall_saved = 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
" this is called when the cursor leaves the buffer
|
" this is called when the cursor leaves the buffer
|
||||||
function! s:setup_buffer_leave()
|
function! s:setup_buffer_leave()
|
||||||
" don't do anything if it's not managed by Vimwiki (that is, when it's not in
|
" don't do anything if it's not managed by Vimwiki (that is, when it's not in
|
||||||
|
Loading…
Reference in New Issue
Block a user