mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-19 10:35:38 -07:00
Downcase opt-in confirmation options
There's a fairly widespread convention which recommends indicating the default confirmation option in uppercase. Granted, the number of applicable instances in vim-plug is currently only two, but perhaps this'll save users with such an inclination having to hit Enter just to sate their curiosities.
This commit is contained in:
parent
1f704deb76
commit
06f903d8af
4
plug.vim
4
plug.vim
@ -1266,7 +1266,7 @@ function! s:clean(force)
|
||||
call append(line('$'), 'Already clean.')
|
||||
else
|
||||
call inputsave()
|
||||
let yes = a:force || (input('Proceed? (Y/N) ') =~? '^y')
|
||||
let yes = a:force || (input('Proceed? (y/N) ') =~? '^y')
|
||||
call inputrestore()
|
||||
if yes
|
||||
for dir in todo
|
||||
@ -1483,7 +1483,7 @@ endfunction
|
||||
function! s:revert()
|
||||
let name = s:find_name(line('.'))
|
||||
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
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user