Merge pull request #135 from threeifbywhiskey/confirmation-convention
Downcase opt-in confirmation options
This commit is contained in:
commit
3606c294de
4
plug.vim
4
plug.vim
|
@ -1266,7 +1266,7 @@ function! s:clean(force)
|
||||||
call append(line('$'), 'Already clean.')
|
call append(line('$'), 'Already clean.')
|
||||||
else
|
else
|
||||||
call inputsave()
|
call inputsave()
|
||||||
let yes = a:force || (input('Proceed? (Y/N) ') =~? '^y')
|
let yes = a:force || (input('Proceed? (y/N) ') =~? '^y')
|
||||||
call inputrestore()
|
call inputrestore()
|
||||||
if yes
|
if yes
|
||||||
for dir in todo
|
for dir in todo
|
||||||
|
@ -1483,7 +1483,7 @@ endfunction
|
||||||
function! s:revert()
|
function! s:revert()
|
||||||
let name = s:find_name(line('.'))
|
let name = s:find_name(line('.'))
|
||||||
if empty(name) || !has_key(g:plugs, name) ||
|
if empty(name) || !has_key(g:plugs, name) ||
|
||||||
\ input(printf('Revert the update of %s? (Y/N) ', name)) !~? '^y'
|
\ input(printf('Revert the update of %s? (y/N) ', name)) !~? '^y'
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user