X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/a8037bb8cc8b46d506e43005acebb1e96e090ae5..1cecd38f650bb32723bb21124d5003ecacb0c59a:/autoload/password_store.vim?ds=inline 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