Merge branch 'patch-1' into 'master'
Update fzf-yank-ring.kak - Fix quoting for strings like `hello 'test' world` See merge request andreyorst/fzf.kak!75
This commit is contained in:
commit
820e700389
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ define-command -hidden fzf-yank-ring %{ evaluate-commands %sh{
|
||||||
yanks=$(mktemp ${TMPDIR:-/tmp}/kak-fzf-yanks.XXXXXX)
|
yanks=$(mktemp ${TMPDIR:-/tmp}/kak-fzf-yanks.XXXXXX)
|
||||||
eval "set -- $kak_quoted_opt_yank_ring_history"
|
eval "set -- $kak_quoted_opt_yank_ring_history"
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
item=$(printf "%s" "$1" | sed "s/^'//;s/'$//" | awk 1 ORS='')
|
item=$(printf "%s" "$1" | sed "s/^'//;s/'$//;s/''/'/g" | awk 1 ORS='')
|
||||||
printf "%s\n" "$item" >> $yanks
|
printf "%s\n" "$item" >> $yanks
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue