We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60c418e commit ba80a97Copy full SHA for ba80a97
autoload/pass/get.vim
@@ -89,11 +89,12 @@ function! pass#get#passphrase() abort
89
" success
90
redraw!
91
" setup passphrase closure
92
- function s:_generate_get_passphrase_closure(_passphrase)
93
- return {-> a:_passphrase}
+ function! s:_generate_get_passphrase_closure(passphrase)
+ return {-> a:passphrase}
94
endfunction
95
96
let s:_get_passphrase = s:_generate_get_passphrase_closure(s:_passphrase)
97
+
98
unlet s:_passphrase
99
" exit
100
break
@@ -119,7 +120,10 @@ function! pass#get#passphrase() abort
119
120
endif
121
endfor
122
- return get(s:, '_passphrase', '')
123
+ if exists('s:_get_passphrase')
124
+ return s:_get_passphrase()
125
+ endif
126
+ return ''
127
128
129
" path
0 commit comments