Skip to content

Commit

Permalink
fix: change quotes in cmd to use in job
Browse files Browse the repository at this point in the history
  • Loading branch information
kawarimidoll committed Nov 28, 2023
1 parent 37ed048 commit bb93cca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k.vim
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function! k#initialize(opts = {}) abort
let s:jisyo_mark_pair[jisyo.path] = get(jisyo, 'mark', '') ==# '' ? '' : $'[{jisyo.mark}] '
let encoding = get(jisyo, 'encoding', '') ==# '' ? 'auto' : jisyo.encoding
let s:grep_cmd ..= 'rg --no-heading --with-filename --no-line-number'
\ .. $" --encoding {encoding} '^:query:' {jisyo.path} 2>/dev/null; "
\ .. $' --encoding={encoding} "^:query:" {jisyo.path} 2>/dev/null; '
let exists_user_jisyo = exists_user_jisyo || jisyo.path ==# s:user_jisyo_path
endfor
if !exists_user_jisyo
Expand All @@ -173,7 +173,7 @@ function! k#initialize(opts = {}) abort
" マークはU エンコードはutf-8で固定
let s:jisyo_mark_pair[s:user_jisyo_path] = '[U] '
let s:grep_cmd = 'rg --no-heading --with-filename --no-line-number'
\ .. $" --encoding utf-8 '^:query:' {s:user_jisyo_path} 2>/dev/null; " .. s:grep_cmd
\ .. $' --encoding=utf-8 "^:query:" {s:user_jisyo_path} 2>/dev/null; ' .. s:grep_cmd
let s:jisyo_list_len += 1
endif

Expand Down

0 comments on commit bb93cca

Please sign in to comment.