Skip to content

Commit

Permalink
feat: ignore errors of rg
Browse files Browse the repository at this point in the history
  • Loading branch information
kawarimidoll committed Nov 25, 2023
1 parent 38cf5ed commit ad2f5ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k.vim
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ function! k#update_henkan_list(str, exact_match = v:true) abort
let henkan_list = []
for jisyo in s:jisyo_list
let mark = get(jisyo, 'mark', '') ==# '' ? '' : $'[{jisyo.mark}]'
let cmd = $"rg --no-filename --no-line-number --encoding {jisyo.encoding} '^{str}' {jisyo.path}"
let cmd = $"rg --no-filename --no-line-number --encoding {jisyo.encoding} '^{str}' {jisyo.path} 2>/dev/null"
let results = systemlist(cmd)
for r in results
let tmp = split(r, '/')
Expand Down

0 comments on commit ad2f5ac

Please sign in to comment.