Skip to content

Commit

Permalink
fix: remmove second argument of k#update_henkan_list
Browse files Browse the repository at this point in the history
  • Loading branch information
kawarimidoll committed Nov 28, 2023
1 parent 52633d3 commit b1f2326
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions k.vim
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,8 @@ function! s:populate_async_henkan_list(data) abort
call s:save_henkan_list(henkan_list, "\<c-r>=k#autocompletefunc()\<cr>")
endfunction

function! k#update_henkan_list(str, exact_match = v:true) abort
let query = a:exact_match ? $'{a:str} ' : $'{a:str}[^ -~]* '
let results = systemlist(substitute(s:combined_grep_cmd, ':query:', query, 'g'))
function! k#update_henkan_list(str) abort
let results = systemlist(substitute(s:combined_grep_cmd, ':query:', $'{a:str} ', 'g'))
call s:save_henkan_list(results)
endfunction

Expand Down

0 comments on commit b1f2326

Please sign in to comment.