Skip to content

Commit

Permalink
Don't use customlist
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Aug 21, 2023
1 parent 71d20b3 commit 076ed9b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions autoload/ddu/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function ddu#util#input_list(message, list) abort
let ret = ''
let s:input_completion_list = a:list->copy()
while a:list->index(ret) < 0
let ret = a:message->input('', 'customlist,ddu#util#_complete_ddu_input')
let ret = a:message->input('', 'custom,ddu#util#_complete_ddu_input')
redraw

if ret ==# ''
Expand All @@ -72,8 +72,7 @@ function ddu#util#benchmark(msg = '') abort
endfunction

function ddu#util#_complete_ddu_input(ArgLead, CmdLine, CursorPos) abort
return s:input_completion_list->copy()->filter(
\ { _, val -> val->stridx(a:ArgLead) == 0 })
return s:input_completion_list->copy()->join("\n")
endfunction

function s:path2directory(path) abort
Expand Down

0 comments on commit 076ed9b

Please sign in to comment.