X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/a8037bb8cc8b46d506e43005acebb1e96e090ae5..ad87aa7d798f4befb827b9a83d931cb8e1be8966:/autoload/password_store.vim diff --git a/autoload/password_store.vim b/autoload/password_store.vim index d8ebedc..6b6260b 100644 --- a/autoload/password_store.vim +++ b/autoload/password_store.vim @@ -11,7 +11,8 @@ set compatible&vim " Return vim to users choice function! password_store#generate() abort if executable('pwgen') - return systemlist('pwgen -N1 ' . g:password_store_settings.pw_length )[0] + let l:result = systemlist('pwgen -N1 ' . password_store#setting('pw_length') ) + return l:result[0] endif endfunction