Skip to content

Commit

Permalink
Remove input messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Aug 21, 2023
1 parent ae0551c commit 71d20b3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions autoload/ddu/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,10 @@ function ddu#util#input_yesno(message) abort
while yesno !~? '^\%(y\%[es]\|n\%[o]\)$'
let yesno = (a:message .. ' [yes/no]: ')->input()
redraw

if yesno ==# ''
echo 'Canceled.'
break
endif

" Retry.
call ddu#util#print_error('Invalid input.')
endwhile

redraw
Expand All @@ -53,13 +50,10 @@ function ddu#util#input_list(message, list) abort
while a:list->index(ret) < 0
let ret = a:message->input('', 'customlist,ddu#util#_complete_ddu_input')
redraw

if ret ==# ''
echo 'Canceled.'
break
endif

" Retry.
call ddu#util#print_error('Invalid input.')
endwhile

redraw
Expand Down

0 comments on commit 71d20b3

Please sign in to comment.