From c54e0d7030c6186e071db8174f3cfb012628caad Mon Sep 17 00:00:00 2001 From: Lynn Date: Fri, 6 Dec 2019 16:51:15 +0000 Subject: [PATCH] Update fzf-yank-ring.kak - Fix quoting for strings like `hello 'test' world` --- rc/modules/fzf-yank-ring.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/modules/fzf-yank-ring.kak b/rc/modules/fzf-yank-ring.kak index 371f26f..a3e98cc 100644 --- a/rc/modules/fzf-yank-ring.kak +++ b/rc/modules/fzf-yank-ring.kak @@ -22,7 +22,7 @@ define-command -hidden fzf-yank-ring %{ evaluate-commands %sh{ yanks=$(mktemp ${TMPDIR:-/tmp}/kak-fzf-yanks.XXXXXX) eval "set -- $kak_quoted_opt_yank_ring_history" 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 shift done